browser-repl autocompleter calls fetchConnectionInfo a lot

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.7
    • Affects Version/s: None
    • Component/s: Browser Module
    • None
    • Iteration Lutz
    • Not Needed

      When first entering text into the browser REPL, fetchConnectionInfo() is called multiple times by the autocompleter, when it should really be called once.

      https://github.com/mongodb-js/mongosh/blob/bbe3826944dc721996a964ab7676a56e42710749/packages/browser-runtime-core/src/open-context-runtime.ts#L51-L55

      This is probably happening because that code does not handle concurrent getCompletions() calls properly.

              Assignee:
              Anna Henningsen
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: