Add block group branch modification setting
What does this MR do and why?
Add block group branch modification setting
- show in list for groups
- hide at project level
Changelog: added
EE: true
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Enable the feature flag
echo "Feature.enable(:scan_result_policy_block_group_branch_modification)" | rails c
- Navigate to a project => Secure => Policies => New policy => Merge request approval policy
- Verify the
Block group branch modification
setting does not show - Navigate to a group => Secure => Policies => New policy => Merge request approval policy
- Verify the
Block group branch modification
setting shows and can be toggled and modified - Create the policy
- Navigate to the group => Secure => Policies => Select the new policy => Edit policy
- Verify the policy editor displays the setting as enabled with the exceptions
- Navigate to the group => Secure => Policies => Select a different policy => Edit policy
- Verify the policy editor displays the setting as disable
Related to #435725 (closed)
Edited by Alexander Turinske