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

Compass shell shows wrong autocomplete suggestions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.34.0
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • 1
    • Iteration Jellyfish, Iteration Kraken
    • Not Needed
    • None

      Problem Description

      After using autocomplete in compass UI (e.g., in Aggregations tab editor), mongosh autocomplete shows wrong results

      Steps to Reproduce

      1. Open any collection, navigate to the Aggregations and create a match state for any field in the collection
      2. Open mongosh and type db., you should see no suggestions
      3. Type the first letter of the field from step 1, you should see the field being suggested

      Expected Results

      You get autocomplete results for whatever you're typing in the shell (e.g., db methods)

      Actual Results

      You get the same autocomplete results you were getting in UI

      Additional Notes

      The source of the issue is probably somewhere in ace editor and some singleton autocomplete state that it's sharing between all the instances

        1. Screen Recording 2021-04-21 at 10.02.11.mov
          9.74 MB
          Sergey Petushkov
        2. Kapture 2021-04-21 at 11.15.35.mp4
          268 kB
          Sergey Petushkov

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: