Problem Statement/Rationale
Today I updated to the latest version of MongoDB Compass i.e. 1.38.1 & observed that the index creation feature is partially broken. When we create an index, we are provided with an auto-complete-based field selection input (search field & select). If we select the field from drop-down without typing anything (no searching but scrolling & select from drop down), indexes are created fine, but if we type to search the field & then select, it is selected correctly but the final index that is created have incorrect field names (incomplete text - whatever partial text we typed during search is used for index creation as is) & those indexes are not valid (doesn't target correct field).
The engineering team should look at this immediately as it is buggy, misleading & resulting in perf issues (index is missed & the user has the impression that they created indexes).
Steps to Reproduce
For example, if I want to create index on a field username, & I type "use" in search dropdown & username appears, I select it for index creation & submit. It will create index on the field "use" which is wrong!
h3. Expected Results
indexes should be created on correct fields irrespective of the use of dropdown search during index creation flow.
Actual Results
partial field name was considered for index creation (if used typing search on dropdown) resulting in wrong & useless index .
Additional Notes
Working fine with 1.37.x on MacOS.
Please let me know if the screenshots/recording is needed.
- duplicates
-
COMPASS-6981 1.38: Compass creating incorrect index
- Closed