Skip to content

Fix: CLI collection init&deploy (databases) - #561

Merged
lohanidamodar merged 4 commits into
masterfrom
feat-fix-deploy-collection
Mar 19, 2023
Merged

lohanidamodar merged 4 commits into
masterfrom
feat-fix-deploy-collection

Conversation

@Meldiron

@Meldiron Meldiron commented Oct 1, 2022 •

Copy link
Copy Markdown
Contributor

What does this PR do?

appwrite deploy collection did not update collection configuration (name, enabled, permissions...). Now it does.

Also removed unused import.

We also never stored database name. Only ID. We now also store and use database ID.

Test Plan

  • Manual QA

update collection settings:

CleanShot.2022-10-01.at.18.40.30.mp4

store database name:

CleanShot.2022-10-01.at.18.49.35.mp4

Related PRs and Issues

x

Have you read the Contributing Guidelines on issues?

Yes

@Meldiron Meldiron changed the title Fix: CLI Deploy collection Fix: CLI collection init&deploy (databases) Oct 1, 2022

@lohanidamodar lohanidamodar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Though is the name initCollection/deployCollection still okay? as we are also pulling and pushing databases?

@Meldiron

Copy link
Copy Markdown
Contributor Author

@lohanidamodar I think it still makes sense for multiple reasons:

  • Not introducing backward change for no reason
  • Functionality barely touched. We already had to create a database when deploying collections. The only thing that changed is that we now know the database name too, instead of setting it to databaseId.

@johannesschobel

Copy link
Copy Markdown

love it.. highly needed.
I have 2 databases in one project to separate sensitive information. currently i can export all collections from all databases but not deploy them back to the server!

@lohanidamodar

Copy link
Copy Markdown
Member

@Meldiron we have conflicts

@lohanidamodar
lohanidamodar merged commit b3eb3a0 into master Mar 19, 2023
@stnguyen90

Copy link
Copy Markdown
Contributor

appwrite/sdk-for-cli#47

@stnguyen90
stnguyen90 deleted the feat-fix-deploy-collection branch April 7, 2023 02:16
@stnguyen90

Copy link
Copy Markdown
Contributor

appwrite/sdk-for-cli#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants