Let users add more deploy rules to an environment
What does this MR do and why?
Users might need to change who is allowed to deploy to an environment, and so need the ability to add rules.
The UX is a little wonky due to AccessLevelDropdown being more of an all in one app than a reusable component, but the work to correct that will be in a follow up.
Screenshots or screen recordings
How to set up and validate locally
- Enable the feature flag:
Feature.enable(:multiple_environment_approval_rules_fe)
- Navigate to a project's environments page Deployments > Environments
- Add an environment
- Navigate to the CI/CD settings page Settings > CI/CD
- Protect the environment
- View the protected environment
- add a deployer rule
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
For #378446 (closed), part of !109157 (closed)