Hide edit for single user approval rules
What does this MR do and why?
Single user approval rules should be set to 1 always, as there is only 1 single user in the rule. How do you get 1 user to approve something twice?
We hide the edit button instead of disabling it so users don't think there should be a way to enable it that they are missing.
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 with a single user approval rule
- expand environment block
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.
Edited by Andrew Fontaine