-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Use Case
As a developer
I want the error codes to be unoffensive
So that I don't become offended or distracted while working with the Node driver code
User Impact
Unknown
Dependencies
- None
Unknowns
- None
Acceptance Criteria
- The error codes have been renamed in src/error.ts:
- NotMaster => NotWritablePrimary (
SERVER-50408) - NotMasterNoSlaveOk => NotPrimaryNoSecondaryOk (
SERVER-50409) - NotMasterOrSecondary => NotPrimaryOrSecondary (
SERVER-50410)
- NotMaster => NotWritablePrimary (
- Functions in error.ts that have master in their names are renamed
- Any associated documentation that is automatically generated from code comments is also updated to reflect the non-offensive names
Implementation Requirements
- None
Testing Requirements
- None
Documentation Requirements
- None
Follow Up Requirements
- The tests that reference the error codes are spec tests. These updates are covered in
NODE-3791