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

Add a test expression that is enabled and registered behind a feature flag

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      It would be helpful for testing if we had an expression that was registered with a feature flag and enabled in the current FCV. We should have two expressions (one that is fcvGated and one that is not). We could then use these expressions to write stable tests for any feature flag behavior, such as FCV downgrades and our registration macros, such as REGISTER_DOCUMENT_SOURCE_WITH_FEATURE_FLAG. It's difficult to write these tests now because features enabled behind feature flags change for each server version.

      I linked a few tickets that would use these expressions in testing.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: