-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[ENH]: add method to delete database (single-node) #3457
base: main
Are you sure you want to change the base?
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
I think we can make the tests a little more robust.
What happens if a user has a handle on a Collection
, and then delete_database
gets called underneath? Maybe we need a friendly error to let them know what happened.
client = client_factories.create_client(database="second") | ||
collection = client.create_collection("test") | ||
|
||
admin_client.delete_database("first") |
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.
We should make sure this works when first
has a collection.
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.
sorry, not quite clear: do you mean testing that deleting a database works when the database has a collection? that's already tested above
|
f2fc604
to
b9bdfe2
Compare
654c768
to
8e3c1ca
Compare
b9bdfe2
to
8b3a2e8
Compare
8e3c1ca
to
9c8302f
Compare
8b3a2e8
to
457f855
Compare
9c8302f
to
adc995d
Compare
adc995d
to
1b4c82b
Compare
Description of changes
Adds a method to delete a database.
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
Yes.