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

Rename enum values to opt in/out of stable API

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query Optimization 2021-07-12, Query Optimization 2021-07-26, QO 2021-09-06, Query Optimization 2021-08-09, QO 2021-09-20, QO 2021-10-04, QO 2021-10-18, QO 2021-08-23

      Description

      During code review for SERVER-58076 we came up with some ideas to improve the clarity of their meaning and intended use:

      1. Rename 'kSometimes' to 'kConditionally'
      2. For 'kNeverInVersion1', James wondered:

        How will this enum change when we introduce API version 2? I wonder if "kNeverInVersion1" should be "kNotAllowedInVersionedApi" rather than referring to a specific version #?"

        Attachments

          Activity

            People

            Assignee:
            charlie.swanson Charlie Swanson
            Reporter:
            charlie.swanson Charlie Swanson
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: