Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38338

Add default "mongo" shell helper method to inform user of error

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Shell
    • Labels:
      None
    • Sprint:
      Dev Tools 2018-12-17, Dev Tools 2018-12-31, Dev Tools 2019-01-14, Dev Tools 2019-01-28, Dev Tools 2019-02-11

      Description

      Currently, new users who may not be very familiar with a shell environment can easily find themselves in a mongo shell, such as verifying they've correctly added it to their path. Then, they may not exit the mongo shell but instead try to launch a new shell or connect to a database. This results in the following errors.

      MongoDB Enterprise > mongo
      2018-11-30T13:42:15.701-0500 E QUERY [js] ReferenceError: mongo is not defined :
      @(shell):1:1
      MongoDB Enterprise > mongo localhost
      2018-11-30T13:45:37.703-0500 E QUERY    [js] SyntaxError: missing ; before statement @(shell):1:6
      

      There are currently 22 threads in Education's new forums that show users encountering this situation, and countless more in our old forums. Adding a default to shellHelper would help ameliorate this and provide better feedback to our newer users.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated: