[COMPASS-6068] Implement forceConnectionOptions option Created: 30/Aug/22  Updated: 29/Oct/23  Resolved: 14/Nov/22

Status: Closed
Project: Compass
Component/s: Connectivity, Preferences
Affects Version/s: None
Fix Version/s: 1.35.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
is depended on by COMPASS-6216 Support username and password CLI arg... Closed
Documented
Related
is related to COMPASS-6216 Support username and password CLI arg... Closed
Epic Link: COMPASS-5816
Story Points: 3
Documentation Changes: Needed
Documentation Changes Summary:

Compass support a config option to force connection options to have a specific value. These options can then not be overridden through the connection form or by specifying them in the connection string.

These options can be specified on the command line, or in the global config file.

Example global config file section (YAML):

forceConnectionOptions:
 - readPreference: secondary
 - readPreferenceTags: nodeType:ANALYTICS
 - readPreferenceTags: nodeType:READ_ONLY

Example global config file section (JSON):

 "forceConnectionOptions": [
   ["readPreference", "secondary"],
   ["readPreferenceTags", "nodeType:ANALYTICS"],
   ["readPreferenceTags", "nodeType:READ_ONLY"]
 ]

Example command line specification:

--forceConnectionOptions.readPreference=secondary --forceConnectionOptions.readPreferenceTags=nodeType:ANALYTICS --forceConnectionOptions.readPreferenceTags=nodeType:READ_ONLY

(picking this example to show how to specify an option that can be specified more than once)

Sprint: Iteration Octopus

 Description   

This includes displaying a notice in the Compass connection UI if the option is active.



 Comments   
Comment by Githook User [ 01/Dec/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: update-compass-shell-to-shared-config
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 25/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: compass-6057-refactor-auto-updates
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 18/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: reduce-collection-header-size
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 17/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: compass-validation-components
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 14/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: COMPASS-6220-import-modal-update
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 14/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: COMPASS-6223-update-databases-collections-to-leafygreen
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 14/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: COMPASS-6064-implement-readonly-option
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 14/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068 (#3733)
Branch: main
https://github.com/mongodb-js/compass/commit/7f1112246f97f222dc289edb7b9f0359d8f020cb

Comment by Githook User [ 10/Nov/22 ]

Author:

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

Message: feat: add forceConnectionOptions option COMPASS-6068
Branch: 6068-dev
https://github.com/mongodb-js/compass/commit/64e8bacad78730a312135573f8e24807c33aea94

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