-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Connectivity
-
None
-
Not Needed
Currently, we do not take into consideration privileges and roles when we fetch databases in the sidebar:
https://github.com/mongodb-js/vscode/blob/main/src/explorer/connectionTreeItem.ts#L102
This causes situations when some databases are listed in the terminal and are being autocompleted in playgrounds, but missing in tree views (see screenshots and reproducible with our ADF instance).
We should behave like Compass in these cases and pass proper privileges and roles:
https://github.com/mongodb-js/compass/blob/main/packages/database-model/lib/model.js#L228-L232
- is duplicated by
-
VSCODE-371 Trying to run playground connected to replica set with auth enabled fails
- Closed