Show databases in the sidebar considering privileges and roles

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • No version
    • 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

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

            Assignee:
            Himanshu Singh
            Reporter:
            Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: