Skip to content

Update organization group creation endpoint

What does this MR do and why?

Related to #460723 (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 !146001 (merged) we built a form to create a group in an organization. We used the POST /groups API endpoint but then realized that endpoint doesn't work for top level groups on gitlab.com. In #444675 (closed) we created a controller endpoint that will work on gitlab.com. This MR switches the forms API to that new controller endpoint

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

Still works 🙂

Before After
Screen_Recording_2024-05-07_at_9.36.12_PM Screen_Recording_2024-05-07_at_9.27.44_PM

How to set up and validate locally

  1. Start GDK in SAAS mode
    • export GITLAB_SIMULATE_SAAS=1 && gdk restart
  2. Enable the feature flag
    • echo "Feature.enable(:ui_for_organizations)" | gdk rails c
  3. Navigate to /-/organizations/default/groups_and_projects
  4. Click New group
  5. Fill out the form and click Create group
  6. Navigate back to /-/organizations/default/groups_and_projects. The newly created group should be there.
Edited by Peter Hegman

Merge request reports