[COMPASS-6992] MongoDB Compass - Broken Index creation Created: 30/Jun/23  Updated: 04/Jul/23  Resolved: 04/Jul/23

Status: Closed
Project: Compass
Component/s: Indexes
Affects Version/s: 1.38.0, 1.38.1
Fix Version/s: 1.39.0

Type: Bug Priority: Blocker - P1
Reporter: Rahul Bhooteshwar Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Mac OS Ventura


Issue Links:
Duplicate
duplicates COMPASS-6981 1.38: Compass creating incorrect index Closed
Documentation Changes: Not Needed

 Description   

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.



 Comments   
Comment by Massimiliano Marcon [ 04/Jul/23 ]

This is a duplicate of COMPASS-6981, which was recently fixed. The fix will be released in Compass 1.39 which will go out soon.

Comment by PM Bot [ 30/Jun/23 ]

Hello rahul.bhooteshwar@nutanix.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

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