Implement global config file parser

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.34.0
    • Affects Version/s: None
    • Component/s: Preferences
    • None
    • 3
    • Iteration Jellyfish, Iteration Kraken
    • Needed
    • Hide

      Compass now accepts a global configuration file, either in EJSON or YAML. Currently, the set of options largely corresponds to our privacy settings, however, more options will be added in the near future. Options can be listed via <path/to/compass> --help.

      The location of this global configuration file is /etc/mongodb-compass.conf on macOS and Linux, and <path\to\compass>\..\mongodb-compass.cfg on Windows.

      Show
      Compass now accepts a global configuration file, either in EJSON or YAML. Currently, the set of options largely corresponds to our privacy settings, however, more options will be added in the near future. Options can be listed via <path/to/compass> --help . The location of this global configuration file is /etc/mongodb-compass.conf on macOS and Linux, and <path\to\compass>\..\mongodb-compass.cfg on Windows.

      Accept YAML and EJSON. Display an error message with showErrorBox() when parsing fails.

      This involves adding e2e tests to verify that the global config file takes precedence over CLI and UI options and UI options are not configurable if set in the global config file.

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

              Created:
              Updated:
              Resolved: