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

On open, embedded shell `use db` command is hidden

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.44.3
    • Component/s: Embedded Shell
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • Iteration Kuiper Belt

      Problem Statement/Rationale

      When opening the embedded shell on a collection it silently runs the use db command, with the db.collection.find() populated. When the use  command completes it then shows that it was run. This is confusing for slower connections, and caused me to run the find against my test database since it hadn't completed the use command yet.

      Steps to Reproduce

      1. Use a remote cluster Compass connection, with higher latency (or simulate the latency)
      2. Open the embedded shell on a collection
      3. Observe that after a few seconds the use db command completes.

      Expected Results

      Show that the use db command is in progress / connecting and block user input until it completes.

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: