[COMPASS-6732] Autocomplete no longer works when hitting tab on field name Created: 18/Apr/23  Updated: 19/Apr/23  Resolved: 19/Apr/23

Status: Closed
Project: Compass
Component/s: Autocomplete
Affects Version/s: 1.36.2, 1.36.3
Fix Version/s: 1.36.4

Type: Bug Priority: Minor - P4
Reporter: Rickesh Thakrar Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Windows 11
node.js / npm versions: node v19.3.0 / npm version 9.2.0
Additional info: When typing part of a field name in the filter section of the query a list of suggested field names begin to appear but when I hit tab on the keyboard it no longer autocompletes the field syntax for me in the query. This bug occurs in the Filter, Project, Sort and Collation sections of the query.


Attachments: PNG File mongo-screenshot-1.png     PNG File mongo-screenshot-2.png     PNG File mongo-screenshot-3.png    
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

What is going wrong? What action would you like the Engineering team to take?

When part typing a field name and subsequently hitting the tab button on the keyboard the field name is no longer being autocompleted in the query filter section. I understand this is minor but it is becoming really annoying. If I click the field name with the mouse it is slightly better but still doesn't exhibit the right behaviour. Please fix this for both the tab button press and mouse click on Filter, Project, Sort and Collation sections of the query.

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

1) Open a collection and start to type the first few letters of a known field of a document in the Filter section of the query until the desired field is at the top (highlighted in grey) and then hit the tab button.

2) Open a collection and start to type the first few letters of a known field of a document in the Filter section of the query then select the desired field with mouse and click.

Expected Results

What do you expect to happen?

1) Field name should be autocompleted and surrounded by quotes e.g. I start to type Na and see the word Name appear, hit tab and would expect "Name" to be displayed in the query as it used to.{}

2) Field name should be autocompleted and surrounded by quotes e.g. I start to type Na and see the word Name appear, use the mouse to click on Name and would expect "Name" to be displayed in the query.{}

Actual Results

What do you observe is happening?

1) The query only displays part of the field name which is the letters I had typed before hitting the tab button followed by the tabbed spacing

2) The query only displays the field name but without the quotes surrounding it

Additional Notes

Any additional information that may be useful to include.

Please see attached screenshots. Screenshot 3 is what I would expect to be displayed but Screenshot 2 is what is actually displayed.



 Comments   
Comment by Rickesh Thakrar [ 19/Apr/23 ]

Thank you leroux.bodenstein@mongodb.com  

When is version 1.32.4 scheduled to be released?

Comment by Le Roux Bodenstein [ 19/Apr/23 ]

Thanks for reporting this. We recently fixed this and it should be in the next release. Version 1.32.4.

Comment by PM Bot [ 18/Apr/23 ]

Hello rickesh.thakrar@sainsburys.co.uk, 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:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.