[SERVER-67243] Add a linter to server_options.h FCV helpers to enforce that they are only used in generic FCV checks Created: 13/Jun/22  Updated: 15/Mar/23  Resolved: 15/Mar/23

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

Type: Task Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Backlog - Replication Team
Resolution: Duplicate Votes: 0
Labels: milestone-2, pm-2821-milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-67248 Remove any additional references to 5... Closed
Duplicate
duplicates SERVER-67234 Ban uses of FCV constants for FCV checks Closed
is duplicated by SERVER-66931 Refactor and standardize feature flag... Closed
Assigned Teams:
Replication
Participants:

 Description   

For isLessThanOrEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, and isUpgradingOrDowngrading, we should add a linter to ban them unless a comment is added preceding the usage to enforce they are only used in generic FCV checks.

This will be similar to the generic FCV reference linter



 Comments   
Comment by Samyukta Lanka [ 15/Mar/23 ]

This would be enforced already once SERVER-67234 is completed.

Generated at Thu Feb 08 06:07:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.