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

Hide obscure/deprecated javascript object properties in autosuggest

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.0.1
    • 1.1.0
    • CLI Module
    • None
    • 2
    • Not Needed
    • Iteration Minsk

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: