Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1713

Autocomplete does not work for collections containing a period

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS: Ubuntu 20.04, x86
      node.js / npm versions: mongosh-linux-x86_64-2.0.2
      Additional info:
    • Developer Tools
    • Not Needed

      Problem Statement/Rationale

      When attempting to tab-autocomplete the available set of collections with mongosh, the autocompletion does not work if the collection prefix so far includes a period. This is in contrast to the legacy mongo shell behavor.

      Steps to Reproduce

      mongosh --port 27017
      > use test
      > db.config.foo.insert({})
      > db.config.bar.insert({})
      > db.config.baz.insert({})
      

      Expected Results

      What do you expect to happen?

      > db.config.b[TAB] 
      db.config.bar db.config.baz
      

      Actual Results

      What do you observe is happening?

      > db.config.b[TAB] 
      db.config.bulkWrite
      

      Additional Notes

      Any additional information that may be useful to include.
      I have also tried different prefixes, so it doesn't appear to something specific with "config." as a special prefix.

            Assignee:
            Unassigned Unassigned
            Reporter:
            john.morales@mongodb.com John Morales (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: