Skip to content

Hide Delete Org area behind a feature flag

Warren Gifford requested to merge mv/hide-delet-org-based-on-feature-flag into main

Created by: miveronese

This PRs hides the Delete Organization area behind a feature flag. Now, we have a total of 3 checks, in the UI, that should be true in order to display this component

  • isSourcegraphDotCom
  • viewerIsMember
  • showOrgDeletion (added by this PR)

Test plan

All current tests should pass.

For manual tests:

a) Make sure you don't have a feature flag "org-deletion"and navigate to the Org Settings page . The Delete Org area should not be displayed. b) Make sure you have created the feature flag "org-deletion" but set it to false. Navigate to the Org Settings page . The Delete Org area should not be displayed.

Merge request reports

Loading