Skip to content

PoC: per environment feature flag

Shinya Maeda requested to merge poc-per-environmnet-feature-flag into master

What does this MR do?

Creation/Edit form

Screenshot_from_2019-01-09_20-08-52


  • Environments
    • production
    • staging
    • review/feature-1
    • review/feature-2

Case 1:

  • Feature flags
    • Name: flag-1, Environment scope: "*", Active: true

Result: 1

  • Environments
    • production => flag-1 is true
    • staging => flag-1 is true
    • review/feature-1 => flag-1 is true
    • review/feature-2 => flag-1 is true

Case 2:

  • Feature flags
    • Name: flag-1, Environment scope: "*", Active: false
    • Name: flag-1, Environment scope: "review/*", Active: true

Result: 2

  • Environments
    • production => flag-1 is false
    • staging => flag-1 is false
    • review/feature-1 => flag-1 is true
    • review/feature-2 => flag-1 is true

Case 3:

  • Feature flags
    • Name: flag-1, Environment scope: "*", Active: true
    • Name: flag-1, Environment scope: "production", Active: false

Result: 3

  • Environments
    • production => flag-1 is false
    • staging => flag-1 is true
    • review/feature-1 => flag-1 is true
    • review/feature-2 => flag-1 is true

Configuration form

Screenshot_from_2019-01-09_20-12-15

Index page (http://localhost:8181/root/feature-flag-json-responder/-/feature_flags)

Screenshot_from_2019-01-09_20-17-45

Environment page

Screenshot_from_2019-01-09_20-23-44

Environment specific Index page (http://localhost:8181/root/feature-flag-json-responder/-/feature_flags?environmnet_name=production)

Screenshot_from_2019-01-09_20-17-45

What are the relevant issue numbers?

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

Does this MR meet the acceptance criteria?

Edited by Shinya Maeda

Merge request reports