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
Screenshots or screen recordings
New UI
One organization | Multiple organizations |
---|---|
![]() |
![]() |
Old UI
One organization | Multiple organizations |
---|---|
![]() |
![]() |
How to set up and validate locally
- Go to
/rails/features
and enable the following feature flagsui_for_organizations
organization_switching
organization_scoped_paths
- Go to
/-/organizations/new
and create an organization - You should see the switcher now that you have multiple organizations
- 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) - 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