-
Notifications
You must be signed in to change notification settings - Fork 189
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
Add support for (de-)registering databases with the query server #681
Conversation
TODO: Ensure there is a version check before attempting to add or remove from the allow list. Older versions of the cli do not support this feature. |
This was closed by mistake. |
Reopening. |
dab141c
to
7e01187
Compare
7e01187
to
6fbfa82
Compare
d5ca54a
to
608e373
Compare
Ping @github/docs-content-dsp! With this change (and the corresponding change in the CLI) we ensure that databases removed from the workspace are unlocked and can be queried without restarting vscode. This is more of a bug fix than a new feature, so not sure if we need a new entry in the docs or if a mention in the changelog is sufficient. Oh, and requires cli version 2.4.1 or later (so, not yet released). |
608e373
to
4ee1522
Compare
No docs impact! |
Thanks for the ping! You're right it's more of a bug fix, so a changelog entry should be sufficient 😊 |
Database registration is available in versions >= 2.4.1
4ee1522
to
3144915
Compare
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.
Generally looks good!
And do a version check before adding `--require-db-registration` flag.
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!
Sends commands to the query server to add and remove databases from the allow list. This feature will enable proper unlocking of databases when they are removed from vscode.
Fixes #572
Fixes #333
Fixes #249
Checklist
@github/docs-content-dsp
has been cc'd in all issues for UI or other user-facing changes made by this pull request.