Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62665

Generate enum definitions for configuration keys with a fixed set of values

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • Morpheus
    • couchbase-bucket
    • None
    • 0

    Description

      Some of the bucket configuration keys support a fixed set of values.

      For example: compression_mode = off | passive | active

      We already have that information in configuration.json, as these keys will have an "enum" validator, which guarantees that only those values will be accepted.

      We can utilise this information to generate C++ enums for those keys, as well as parsing/stringify logic.

      Attachments

        For Gerrit Dashboard: MB-62665
        # Subject Branch Project Status CR V

        Activity

          People

            vesko.karaganev Vesko Karaganev
            vesko.karaganev Vesko Karaganev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are 2 open Gerrit changes

                PagerDuty