Skip to content

site-admin: create, update, and delete feature flags

Warren Gifford requested to merge feature-flag-overview-page into main

Created by: bobheadxi

Closes https://github.com/sourcegraph/sourcegraph/issues/32232 . Places feature flag configuration details in a separate page to enable more flexibility for setting up making modifications to feature flags, and implements creation, update, and deletion of feature flags.

We could add additional nice loading states and stuff but I think this is good enough to start with perhaps? I'm sure I wrote a bunch of bad code here but would appreciate any commentary!

I was going to do multiple PRs but figured it might be better to do an all-in-one thing for this functionality - still reviewable commit-by-commit though! As a user, one can also simply review the gif below

Test plan

sg run web-standalone-http 

Kapture 2022-03-08 at 02 16 05

Updated from above - you can now see references as you are creating a feature flag:

image

More updated screenshots: https://github.com/sourcegraph/sourcegraph/pull/32246#issuecomment-1063272161

Merge request reports

Loading