Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature toggles management: Define get feature toggles api #72106

Merged
merged 2 commits into from Jul 24, 2023

Conversation

jcalisto
Copy link
Contributor

What is this feature?

Added a new endpoint to allow admin users to fetch a list of feature toggles and whether they are enabled on the instance.
Also added a hidden_toggles and read_only_toggles config for the operator to have control on the displayed feature toggles.

Why do we need this feature?

We are creating a Feature Toggle Management page within grafana, where the user can see (and update in the future) the current feature toggles state.

Who is this feature for?

Grafana Administrators

Which issue(s) does this PR fix?:

Fixes #70923
Implements GET endpoint #70922

@jcalisto jcalisto force-pushed the feature-toggles-management/api branch from 8fa590c to f26e382 Compare July 21, 2023 12:33
@jcalisto jcalisto force-pushed the feature-toggles-management/api branch from f26e382 to 39dcbac Compare July 21, 2023 13:44
@jcalisto jcalisto added add to changelog no-backport Skip backport of PR labels Jul 21, 2023
@jcalisto jcalisto added this to the 10.1.x milestone Jul 21, 2023
@jcalisto jcalisto marked this pull request as ready for review July 21, 2023 14:21
@jcalisto jcalisto requested review from torkelo and a team as code owners July 21, 2023 14:21
@jcalisto jcalisto requested review from PoorlyDefinedBehaviour, IbrahimCSAE, eleijonmarck, Jguer, sakjur, papagian and yangkb09 and removed request for a team July 21, 2023 14:21
################################## Feature Management ##############################################
[feature_management]
# Hides specific feature toggles from the feature management page
hidden_toggles =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these as instance level config? (Vs just options in each feature)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These configs were proposed during our DNA discussion, as they could be useful for operators (HG or others) to decide which features their grafana administrators would be able to tune in.

Copy link
Contributor

@mmandrus mmandrus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mmandrus mmandrus merged commit 4ba8317 into main Jul 24, 2023
12 checks passed
@mmandrus mmandrus deleted the feature-toggles-management/api branch July 24, 2023 20:13
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create new roles for feature toggle management
5 participants