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 |
---|---|
How to set up and validate locally
- Checkout the branch
- Visit the organizations page
http://gdk.test:3000/-/organizations/
- Verify that
New Organization
button is hidden - Enable the FF
Feature.enable(:allow_organization_creation, current_user)
- Verify that button is displayed correctly
- Verify that correct message is displayed when FF is disabled!
- Verify that creation works with the FF enabled!
🎉
prerequisite: ui_for_organizations
FF should be enabled.
Related to #441531 (closed)
Edited by Bojan Marjanovic