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

"Create Index" on new database will list 0, 1, 2, 3, 4 as field names

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.20.5, 1.26.1
    • Component/s: Compass
    • Labels:
      None
    • Environment:
      macOS 10.14.6
    • 3
    • Not Needed

      Problem Description

      Steps to Reproduce

      Create a new MongoDB instance 5.0rc and connect to it.

      Create database and collection

      Add a single document {"a":1}

      Click "Indexes" tab

      Click "Create Index" button.

      See field names of 0, 1, 2, 3, a in the "Select a field name" dropdown.

      Select "3".

      An index named "3" is created but it's unclear what field this refers to. And, what keys are named 0, 1, 2, 3 ?

      Expected Results

      Expected only to see the newly-created "a" field name for creating an index on.
      Did not see any Compass documentation that explains this behavior, https://docs.mongodb.com/compass/current/indexes/

      Actual Results

      Additional Notes

            Assignee:
            Unassigned Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: