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

Hide obscure/deprecated javascript object properties in autosuggest

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: 1.0.1
    • Component/s: CLI Module
    • None
    • 2
    • Iteration Minsk
    • Not Needed

      As suggested by john.page in #mongosh slack channel, we might want to consider to hide some deprecated object properties in mongosh autosuggest.

      For example typing db.<tab> currently gives the following output:

      > db.<tab>
      db.__defineGetter__          db.__defineSetter__
      db.__lookupGetter__          db.__lookupSetter__
      db.__proto__                 db.constructor
      db.hasOwnProperty            db.isPrototypeOf
      db.propertyIsEnumerable      db.toLocaleString
      db.toString                  db.valueOf
      db.getMongo                  db.getName
      ...
      

      And maybe we can hide things like defineGetter, lookupGetter, defineSetter, lookupSetter, proto as they are at the very top of the results, not that helpful, and are not recommended for use anyway

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

              Created:
              Updated:
              Resolved: