Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6458

Support "Hide" indexes in the GUI

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.38.0
    • Affects Version/s: None
    • Component/s: UI / UX
    • None
    • 3
    • Iteration Dreadnoughtus
    • Needed
    • Hide

      In this PR we added a small feature in our Indexes tab to hide and unhide indexes. This feature earlier was accessed through in-built shell / mongosh using command `db.collection.hideIndex()` and `db.collection.unhideIndex()`. The feature requires a minimum server version 4.4.0. It can be accessed by connecting to a supported mongodb deployment, navigating to Indexes tab and hovering over an index that needs to hidden/unhidden. On hover, there will be an icon button with a closed eye icon (if index is not hidden) or an open eye icon (if the index is hidden). Users can use this icon button to hide/unhide their indexes. Additionally if an index is hidden we also add a hidden badge to index properties column in the indexes table.

      In the Compass's Manage Indexes (https://www.mongodb.com/docs/compass/current/indexes/) page, we will need to add a section about this feature.

      Show
      In this PR we added a small feature in our Indexes tab to hide and unhide indexes. This feature earlier was accessed through in-built shell / mongosh using command `db.collection.hideIndex()` and `db.collection.unhideIndex()`. The feature requires a minimum server version 4.4.0. It can be accessed by connecting to a supported mongodb deployment, navigating to Indexes tab and hovering over an index that needs to hidden/unhidden. On hover, there will be an icon button with a closed eye icon (if index is not hidden) or an open eye icon (if the index is hidden). Users can use this icon button to hide/unhide their indexes. Additionally if an index is hidden we also add a hidden badge to index properties column in the indexes table. In the Compass's Manage Indexes ( https://www.mongodb.com/docs/compass/current/indexes/ ) page, we will need to add a section about this feature.

      At the moment users can Hide indexes from the embedded shell: db.collection.hideIndex(<index>)

      But there is no representation in the GUI.

      We can do: 

      1. add a badge (HIDDEN) in the properties column to state that the index is hidden.
      2. provide a way to hide indexes directly from the UI e.g and option close to the delete 

            Assignee:
            himanshu.singh@mongodb.com Himanshu Singh
            Reporter:
            claudia.deangelis@mongodb.com Claudia De Angelis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: