Skip to content

Create organization behind feature flag

What does this MR do and why?

As per Create organization behind feature flag (#441531 - closed), we're enabling organization creation behind a FF. It adds new FF, and reuse it on the frontend and backend parts.

  • hides the New Organization button on the FE side
  • returns an error message if the FF is disabled for the user

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

Hidden button Error message
image image

How to set up and validate locally

  1. Checkout the branch
  2. Visit the organizations page http://gdk.test:3000/-/organizations/
  3. Verify that New Organization button is hidden
  4. Enable the FF Feature.enable(:allow_organization_creation, current_user)
  5. Verify that button is displayed correctly
  6. Verify that correct message is displayed when FF is disabled!
  7. Verify that creation works with the FF enabled! 🎉

prerequisite: ui_for_organizations FF should be enabled.

Related to #441531 (closed)

Edited by Bojan Marjanovic

Merge request reports