Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: appwrite init collection doesn't clear old collections #6935

Open
2 tasks done
punitdiwan opened this issue Oct 17, 2023 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database.

Comments

@punitdiwan
Copy link

馃憻 Reproduction steps

When I execute appwrite init collection, the appwrite.json file should sync with all collections from the remote Appwrite instance. It means it should also remove the collection from the appwrite.json if it is deleted from the appwrite instance. The collection is not being deleted if it's removed from the database.

Reproduction steps

  1. Create a Collection from the console
  2. On CLI, execute appwrite init collection
  3. Delete the Same collection from the console.
  4. Again from CLI, execute appwrite init collection
  5. Open the appwrite.json, and you will see the deleted collection listed there.

馃憤 Expected behavior

The deleted collection should get deleted from the appwrite.json file when the appwrite init collection command is executed. the same collection is not found in the remote Appwrite Instance.

馃憥 Actual Behavior

The deleted collection is not getting deleted from the appwrite.json file when appwrite init collection is executed. if it is not found in the remote server.

馃幉 Appwrite version

Version 1.4.x

馃捇 Operating system

Linux

馃П Your Environment

Tested on Both Linux and Windows. It happens on both OS

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@punitdiwan punitdiwan added the bug Something isn't working label Oct 17, 2023
@adarsh-jha-dev
Copy link

Hey @punitdiwan , can you please assign this to me ?

@stnguyen90 stnguyen90 changed the title 馃悰 Bug Report: CLI appwrit.json not updating correctly 馃悰 Bug Report: appwrite init collection doesn't clear old collections Oct 17, 2023
@stnguyen90 stnguyen90 added the product / databases Fixes and upgrades for the Appwrite Database. label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

3 participants