Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6732

Autocomplete no longer works when hitting tab on field name

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.36.4
    • Affects Version/s: 1.36.2, 1.36.3
    • Component/s: Autocomplete
    • Labels:
      None
    • Environment:
    • Not Needed

      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.

        1. mongo-screenshot-1.png
          28 kB
          Rickesh Thakrar
        2. mongo-screenshot-2.png
          2 kB
          Rickesh Thakrar
        3. mongo-screenshot-3.png
          3 kB
          Rickesh Thakrar

            Assignee:
            Unassigned Unassigned
            Reporter:
            rickesh.thakrar@sainsburys.co.uk Rickesh Thakrar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: