[go: up one dir, main page]

Skip to content

Hide organization switcher for users with one organization

What does this MR do and why?

Related to #567524

Organization switching is and will only be available to GitLab team members for the foreseeable future for testing purposes. To avoid confusion for GitLab team members that do not have multiple organizations and to un-clutter the navigation we are going to hide the organization switcher for users with only one organization.

References

#567524

Screenshots or screen recordings

New UI

One organization Multiple organizations
Screenshot_2025-10-15_at_1.02.09_PM Screenshot_2025-10-15_at_1.01.35_PM

Old UI

One organization Multiple organizations
Screenshot_2025-10-15_at_1.01.51_PM Screenshot_2025-10-15_at_1.01.21_PM

How to set up and validate locally

  1. Go to /rails/features and enable the following feature flags
    • ui_for_organizations
    • organization_switching
    • organization_scoped_paths
  2. Go to /-/organizations/new and create an organization
  3. You should see the switcher now that you have multiple organizations
  4. Go to /admin/users and impersonate a user that only has one organization (they all should unless you explicitly created an organization with another user)
  5. You should not see the switcher

MR acceptance checklist

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

Edited by Peter Hegman

Merge request reports

Loading