Feature flags should have a toggle
Problem to solve
Delivery started dogfooding the feature flags feature with https://gitlab.com/gitlab-org/release/framework/issues/425
While using the feature, the lack of a toggle on the index page makes the use of feature flag a bit confusing. In order to turn on/off the feature flag, you need to click on the edit button, select the toggle and save. I believe that we can have a toggle on the index page to do this.
Intended users
- Developers who create feature flags
- QA engineers enabling/disabling flags
- Release managers who want to control which features are released and to which customer base
- Support engineers that wish to release features to beta customers or test version to fix bugs for specific customers
Proposal
Add a feature flag level toggle to the feature flags list items and detail pages.
UX proposal
Add a feature flag level toggle to supersede enviorment level toggles.
- On the feature flag list, replace the status badge with a toggle
- On feature flag details page, add a feature flag level toggle
- Toggle should reflect the status on the feature flag
- Toggle should allow the status of the feature flag to be turned on/off
- When the toggle is on, environment toggles control status of feature flag for that given environment
- When the toggle is off,
- The toggle should act as a kill switch
- The feature flag is off for all environments regardless of environment toggle status
- Display environment status toggles as disabled
Description | Mockup |
---|---|
Feature flag list | ![]() |
Feature flag details enabled | ![]() |
Feature flag details disabled | ![]() |
Permissions and Security
A user who has permission to the environments referenced in the feature flag can set the feature flag status.
Documentation
Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Links / references
Edited by Orit Golowinski