-
Type: Improvement
-
Resolution: Done
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
Use Case
As a developer
I want to remove the legacy boolean options (‘1’ ‘yes’ ‘no’ etc.) from our connection string parsing
So that our options parsing is simpler and easier to work with.
User Impact
* Any users making use of our legacy boolean options will have to explicitly provide boolean values in connection string and MongoClient constructor
Dependencies
- This is a breaking change, so it needs to go out in v6 of the node driver.
Unknowns
N/A
Acceptance Criteria
Implementation Requirements
- When parsing boolean values from options in the connection string, only accept true/false as valid values.
- Remove getBoolean helper and update relevant logic in setOption
Testing Requirements
- New unit test to assert that we do not accept the alternate values for boolean options
- Skip any spec tests which expect us to accept the alternate values for boolean options
Documentation Requirements
- DOCSP ticket will be generated
- Release notes and migration guide will mention this change
Follow Up Requirements
- N/A
- is depended on by
-
COMPASS-7049 Investigate changes in NODE-3989: Remove deprecated boolean parsing logic in connection strings
- Closed