Route new/create group through Organization scope

What does this MR do and why?

Scope new/create group by Organization.

  • Adds Organization scoped routes for new and create group
  • Ensures relevant global routes are made Organization Context aware

There is a more detailed description of Organization paths in the Organization Path Scope ADR.

This work sits behind a feature flag through Organization#scoped_paths?.

Relates to #553914 (closed)

References

Related to !197425 (merged)

Screenshots or screen recordings

Below illustrates examples of the "New Group" link depending on the Current Organization context.

Before (unscoped) After (Organization scoped)
Screenshot_2025-07-24_at_1.55.03_PM Screenshot_2025-07-24_at_1.55.12_PM
Screenshot_2025-07-24_at_1.54.21_PM Screenshot_2025-07-24_at_1.54.30_PM

How to set up and validate locally

  1. In rails console enable the feature flag
Feature.enable :allow_organization_creation
Feature.enable :organization_switching
Feature.enable :ui_for_organizations
Feature.enable :organization_scoped_paths
  1. Create an Organization through the + sidebar button.
  2. Navigate to Organization Groups & Projects

Screenshot_2025-07-18_at_9.38.50_AM

  1. Click the New group button and observe the URL is /o/ Organization scoped.
  2. Create a group and observe the group is successfully created and you're within your new Organization as represented by the Organization name at the top portion of the sidebar.

Screenshot_2025-07-24_at_2.09.24_PM

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 Alex Pooley

Merge request reports

Loading