Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87569

Add a check to FeatureFlagUtil.getStatus() to catch incorrect usage

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Execution Team 2024-03-18

      The FeatureFlagUtil (jstests/libs/feature_flag_util.js) takes parameter names without the "featureFlag" prefix. If you use a name with the "featureFlag" prefix it will look for a flag called "featureFlagfeatureFlagYourFlag", which is not going to work. We should have the FeatureFlagUtil reject such names to reduce the chance of user error.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: