[COMPASS-6071] Implement global config file parser Created: 30/Aug/22  Updated: 29/Oct/23  Resolved: 20/Sep/22

Status: Closed
Project: Compass
Component/s: Preferences
Affects Version/s: None
Fix Version/s: 1.34.0

Type: Task Priority: Major - P3
Reporter: Anna Henningsen Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-6060 Implement new Preferences class Closed
is depended on by COMPASS-6084 Include a dummy global configuration ... Closed
Documented
Related
related to COMPASS-6070 Implement command-line argument parser Closed
Epic Link: COMPASS-5816
Story Points: 3
Documentation Changes: Needed
Documentation Changes Summary:

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.

Sprint: Iteration Jellyfish, Iteration Kraken

 Description   

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.



 Comments   
Comment by Githook User [ 28/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071 (#3486)

Comment by Githook User [ 21/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071 (#3486)

Comment by Githook User [ 21/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071 (#3486)

Comment by Githook User [ 20/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071 (#3486)

Comment by Githook User [ 20/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071 (#3486)

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071 (#3486)

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/57e7ff75dfaf2ba2268fd651f41eaef16d9ba858

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/fde53ad076119bb9f492274128eac7a3889396be

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/a0f5bc0baa07a54f5ca5cb14f57f15e904ecee77

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/ae10fa3b7b97488f0afdcbe076b84692471a782e

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/13113284239aa2ff6b51cf5df00ea57a7f3d5bfd

Comment by Githook User [ 17/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! fixup! fixup! fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/109fcacba07215302acc305944e5c25d00dbe47e

Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! fixup! fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/9b18e835d26407622407ab4d8142a53c0913a38c

Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/366feda42fbbc7d6de8a70d89d09ae416c051023

Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/9c953c55f0cb42fac6f979e4e805e87af565ded1

Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/8f83258e99389b92513a5143c9c1a69cbba3a33e

Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fixup! feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/300c1aa28ddd78787e122d7ec560ca546fbca9d3

Comment by Githook User [ 16/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: feat: add support for CLI args/global config file COMPASS-6070 COMPASS-6071
Branch: 6070-dev
https://github.com/mongodb-js/compass/commit/dede1053c1edd27c92c7af30fe0ad62752508e56

Generated at Wed Feb 07 22:41:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.