-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Feat: Add enable param in Database and Collection #5553
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Add enable param in Database and Collection #5553
Conversation
cc @abnegate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 just some small formatting comments. I've re-run the CI to check tests again too (the ones that failed are flaky and unrelated to your changes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some more tests to cover all other updates endpoints too 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, just a couple of formatting issues
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
Co-authored-by: Jake Barnby <jakeb994@gmail.com>
Just realized we also need to add the checks to ensure that only the console can access these routes if a database is disabled, you can see an example of the same check for storage buckets here. We will need this check for all of the create/read/update/delete routes for collections and documents. Send me a DM if you need any clarification 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, please also add tests to DatabasesConsoleClientTest
that ensures that the console can still access these routes for a disabled database
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small formatting issues and we're good! Make sure to run composer format
or docker run -itv $PWD:/app composer format
to auto-fix any issues possible 👍
What does this PR do?
Adds
enabled
parameter while creating/updating Database and CollectionTest Plan
Related PRs and Issues
nil
Checklist