Skip to content

Multiple environments support for feature flags (Unleash API standpoint)

Shinya Maeda requested to merge add-feature-flag-scope into master

What does this MR do?

This MR is for supporting multiple environment extension for feature flags. This MR is focusing on Unleash API, which is used by Unleash clients, such as https://github.com/Unleash/unleash-client-ruby.

Key changes

  • Add operations_feature_flag_scopes table, which will be a child table of operations_feature_flag (1-to-Many)
  • Operations::FeatureFlagScope has HasEnvironmnetScope module that supports multiple environments architecture

This feature is behind a feature flag (Flipper) named feature_flags_environment_scope

To enable this feature, execute FeatureFlag.enable(:feature_flags_environment_scope).

What are the relevant issue numbers?

Related: https://gitlab.com/gitlab-org/gitlab-ee/issues/8621

Test clients (powered by Unleash libraries)

Does this MR meet the acceptance criteria?

Edited by Shinya Maeda

Merge request reports

Loading