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

Feat: Feature toggle admin page frontend interface #72164

Merged
merged 14 commits into from Aug 3, 2023

Conversation

IbrahimCSAE
Copy link
Contributor

@IbrahimCSAE IbrahimCSAE commented Jul 22, 2023

What is this feature?

Added a new admin page to allow admin users to view a list of feature toggles and their status on their grafana instance.

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 #70784 & https://github.com/grafana/grafana-operator-experience-squad/issues/608

image

@IbrahimCSAE IbrahimCSAE requested review from a team as code owners July 22, 2023 07:35
@IbrahimCSAE IbrahimCSAE requested review from L-M-K-B, JoaoSilvaGrafana, vtorosyan, Jguer, sakjur, mildwonkey and suntala and removed request for a team July 22, 2023 07:35
@IbrahimCSAE IbrahimCSAE changed the title Feat/feature toggle admin page prototype feature toggle admin page frontend interface Jul 22, 2023
@github-actions github-actions bot added area/backend area/frontend pr/external This PR is from external contributor labels Jul 22, 2023
@IbrahimCSAE IbrahimCSAE changed the title feature toggle admin page frontend interface WIP: feature toggle admin page frontend interface Jul 22, 2023
@IbrahimCSAE IbrahimCSAE changed the title Feat: feature toggle admin page frontend interface Feat: Feature toggle admin page frontend interface Jul 28, 2023
@mmandrus mmandrus requested review from a team, joshhunt and L-M-K-B and removed request for a team August 1, 2023 15:24
mmandrus
mmandrus previously approved these changes Aug 1, 2023
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 as a first pass! Please make the change requested by Josh before merging.

Let's do a follow-up task to use the other table impl.

@mmandrus mmandrus dismissed their stale review August 1, 2023 15:46

dismissing as there are other requested changes. Maybe we should use the fancy table component here instead?

Copy link
Contributor

@joshhunt joshhunt left a comment

Choose a reason for hiding this comment

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

👍🏻 Great stuff with the RTK Query usage!

Nice to see InteractiveTable get more usage! Eager for any feedback you might have from trying it.

public/app/features/admin/AdminFeatureTogglesPage.tsx Outdated Show resolved Hide resolved
public/app/features/admin/AdminFeatureTogglesPage.tsx Outdated Show resolved Hide resolved
pkg/api/api.go Outdated Show resolved Hide resolved
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 - got a walk-through from @IbrahimCSAE showing me all the comments and resulting changes.

We will be iterating on this page, so if you have any further comments, please share in #proj-feature-toggle-admin-page in slack

@IbrahimCSAE IbrahimCSAE merged commit 0d48ac2 into main Aug 3, 2023
13 checks passed
@IbrahimCSAE IbrahimCSAE deleted the feat/feature-toggle-admin-page-prototype branch August 3, 2023 18:17
@grafana-delivery-bot grafana-delivery-bot bot modified the milestones: 10.1.x, 10.2.x Aug 3, 2023
aishyandapalli pushed a commit to aishyandapalli/grafana that referenced this pull request Aug 16, 2023
* feature toggles admin page proto

* feature toggle admin page proto

* keep phase 1 code only

* latest update with api

* fix

* fix

* add correct premissions in admin.go

* move behind toggle

* Use InteractiveTable

* guard behind feature toggle

* use RTK

* route in api.go

* fixes
chauchausoup pushed a commit to chauchausoup/grafana that referenced this pull request Sep 15, 2023
* feature toggles admin page proto

* feature toggle admin page proto

* keep phase 1 code only

* latest update with api

* fix

* fix

* add correct premissions in admin.go

* move behind toggle

* Use InteractiveTable

* guard behind feature toggle

* use RTK

* route in api.go

* fixes
@zerok zerok modified the milestones: 10.2.x, 10.2.0 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/backend area/frontend no-backport Skip backport of PR pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prototype UI for admin page
5 participants