Skip to content

Add feature specs for multiple environment feature flag

Shinya Maeda requested to merge 8621-new-feature-flag-vue-with-be-fix into master

What does this MR do?

  • Add feature specs for multiple environments support for feature flags
  • Improve validation in case frontend tries to insert a default scope to a second, third row
  • Sets the default value for feature_flag.active in case frontend doesn't send active value. This is necessary because frontend doesn't send active value in the new behavior, whereas they sends it in the old behavior
  • Do not create a default scope if frontend has already contained the information in the parameter scopes_variables. This is necessary to avoid a conflict between old and new behaviors.

This feature is behind a feature flag named feature_flags_environment_scope

What are the relevant issue numbers?

Related: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9228

Does this MR meet the acceptance criteria?

Edited by Shinya Maeda

Merge request reports