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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tree-explorer): use nameOnly for fetching databases VSCODE-361 #505

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Mar 30, 2023

We only use the database here so passing nameOnly should give a speedup.

Part of VSCODE-361
This also fixes an issue where the database names aren't showing for free tier instances (or maybe specific admin roles). Haven't gotten to the exact cause yet. We're using the listDatabases with fallbacks for roles/privileges from Compass: https://github.com/mongodb-js/compass/blob/4e06bd332f20c122730e204e7d379b9cd1656767/packages/data-service/src/data-service.ts#L1039

Copy link
Contributor

@alenakhineika alenakhineika left a comment

Choose a reason for hiding this comment

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

Yes, let's include this in this release!

@Anemy Anemy merged commit 28e9bea into main Mar 30, 2023
@Anemy Anemy deleted the use-nameOnly-for-fetching-databases-VSCODE-361 branch March 30, 2023 19:32
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.

2 participants