[COMPASS-4861] "Create Index" on new database will list 0, 1, 2, 3, 4 as field names Created: 31/May/21  Updated: 27/Oct/23  Resolved: 26/Apr/22

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.20.5, 1.26.1
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Felicia Hsieh Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOS 10.14.6


Attachments: PNG File Screen Shot 2021-05-31 at 3.14.37 PM.png    
Issue Links:
Related
related to COMPASS-3990 Indexes field dropdown on a newly cre... Closed
Story Points: 3
Documentation Changes: Not Needed

 Description   

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



 Comments   
Comment by Basit Chonka [ 26/Apr/22 ]

Could not reproduce in Compass 1.32.2. (See video linked in COMPASS-3990)

Generated at Wed Feb 07 22:37:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.