Skip to content

Add feature flag check to `New organization` option in nav dropdown

What does this MR do and why?

Related to #452518 (closed)

The grouptenant scale team is starting to build out an Organization MVC. For more information about what an "Organization" will be see https://docs.gitlab.com/ee/architecture/blueprints/organization/

In !148347 (merged) and !147930 (merged) we introduced a allow_organization_creation feature flag to control who can create organizations for the first iteration. We missed adding this feature flag to the New organization dropdown item in the main sidebar. This MR adds the feature flag check there.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-04-11_at_12.20.20_PM Screenshot_2024-04-11_at_12.19.26_PM

How to set up and validate locally

  • Enable ui_for_organizations feature flag
    • echo "Feature.enable(:ui_for_organizations)" | gdk rails c
  • Open the dropdown in the sidebar navigation. The New organization button should not be there
  • Enable allow_organization_creation feature flag
    • echo "Feature.enable(:allow_organization_creation)" | gdk rails c
  • Open the dropdown in the sidebar navigation. The New organization button should be there
Edited by Peter Hegman

Merge request reports