Skip to content

site-admin: add feature flags list view

Warren Gifford requested to merge site-admin-feature-flags-listing into main

Created by: bobheadxi

Adds a simple list view to the site admin pages that presents a simple list (of active feature flags)

This is a first iteration of https://github.com/sourcegraph/sourcegraph/issues/31182, which aims to introduce nicer UI/UX for feature flags.

Closes https://github.com/sourcegraph/sourcegraph/issues/32231

image

Notes

Querying for the namespace of an override seems to cause auth errors, at least on sourcegraph.com:

API console link

{
  "errors": [
    {
      "message": "org not found: id 2615",
      "path": [
        "featureFlags",
        2,
        "overrides",
        0,
        "namespace"
      ]
    },

To avoid this, I'm opting to not render the namespace name for now, and just show the override ID (see screenshot)

Test plan

sg run web-standalone-http-prod

See above for screenshot

Merge request reports

Loading