Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-361

Show databases in the sidebar considering privileges and roles

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Connectivity
    • Labels:
      None
    • 3
    • 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

        1. compass.png
          compass.png
          624 kB
        2. list-databases-params.txt
          6 kB
        3. playground.png
          playground.png
          144 kB
        4. terminal.png
          terminal.png
          249 kB

            Assignee:
            himanshu.singh@mongodb.com Himanshu Singh
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: