[COMPASS-6981] 1.38: Compass creating incorrect index Created: 27/Jun/23  Updated: 15/Dec/23  Resolved: 28/Jun/23

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

Type: Bug Priority: Critical - P2
Reporter: Julia Oppenheim Assignee: Alena Khineika
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Attachments: PNG File Screenshot 2023-06-27 at 4.22.40 PM.png     PNG File Screenshot 2023-06-27 at 4.22.53 PM.png     PNG File Screenshot 2023-06-27 at 4.24.52 PM.png    
Issue Links:
Duplicate
is duplicated by COMPASS-6992 MongoDB Compass - Broken Index creation Closed
Related
Assigned Teams:
Developer Tools
Documentation Changes: Not Needed
Sprint: Iteration Edmontonia

 Description   

Problem Statement/Rationale

When you select a field from Compass' dropdown without typing the whole field name, an index is generated on only the characters typed in the text box. 

Steps to Reproduce

  1. Create and index and start typing in the field name text box
  2. Select a field from the suggested field dropdown
  3. Create and index 

Expected Results

You'd expect an index to be created on the field selected from the dropdown. 

Actual Results

An index is created on the text entered in the text box before the field is created. 

Additional Notes

See screenshots for an example flow where I select "access" from the dropdown.

 



 Comments   
Comment by Githook User [ 14/Jul/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: fix: use value from the evt.target to fix index creation COMPASS-6981 (#4596)

  • fix: use value from the evt.target to fix index creation COMPASS-6981
Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: fix: use value from the evt.target to fix index creation COMPASS-6981 (#4596)

  • fix: use value from the evt.target to fix index creation COMPASS-6981
Comment by Githook User [ 29/Jun/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: fix: use value from the evt.target to fix index creation COMPASS-6981 (#4596)

  • fix: use value from the evt.target to fix index creation COMPASS-6981
Comment by Githook User [ 28/Jun/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: fix: use value from the evt.target to fix index creation COMPASS-6981 (#4596)

  • fix: use value from the evt.target to fix index creation COMPASS-6981
Comment by Githook User [ 28/Jun/23 ]

Author:

{'name': 'Alena Khineika', 'email': 'alena.khineika@gmail.com', 'username': 'alenakhineika'}

Message: fix: use value from the evt.target to fix index creation COMPASS-6981
Branch: COMPASS-6981-compass-creating-incorrect-index
https://github.com/mongodb-js/compass/commit/6f0f9ce51b1d49dbeb183ea3c83950ef8a524003

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