[SERVER-30581] Remove repeated string constants related to featureCompatibilityVersion Created: 09/Aug/17  Updated: 30/Oct/23  Resolved: 30/Aug/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.5.13

Type: Improvement Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2017-09-11
Participants:

 Description   

The dochub link "http://dochub.mongodb.org/core/3.6-feature-compatibility." is repeated throughout the code.

The help message for setFeatureCompatibilityVersion and cluster setFeatureCompatibilityVersion also contain "3.4" and "3.6" as string constants.

The error message for setting featureCompatibilityVersion also uses string constants for "3.4" and "3.6".

It would be better if all of these string constants were variables so that they could be changed in one place and we would not forget to update any instance when we branch.



 Comments   
Comment by Githook User [ 30/Aug/17 ]

Author:

{'name': 'Tess Avitabile', 'username': 'tessavitabile', 'email': 'tess.avitabile@mongodb.com'}

Message: SERVER-30581 Remove repeated string constants related to featureCompatibilityVersion
Branch: master
https://github.com/mongodb/mongo/commit/34621e09900e3888b8b4101c9a806cf21c9eed19

Generated at Thu Feb 08 04:24:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.