Update policy drawer for new warn mode policies
What does this MR do and why?
Update policy drawer for new warn mode policies
- use enforcementType property
- hide behind feature flag
- update tests for new warn type
- update mocks
Changelog: changed
EE: true
References
Screenshots or screen recordings
| Scenario | Screenshot |
|---|---|
| Enforce mode/Feature flag off | ![]() |
| Warn mode | ![]() |
How to set up and validate locally
- Upload a GitLab Ultimate license
- Enable the
security_policy_approval_warn_modefeature flag (http://gdk.test:3000/rails/features) - Navigate to a project/group => Secure => Policies => New policy => Merge Request Approval Policyh => Create a warn mode policy
- Navigate to a project/group => Secure => Policies => Select the new policy
- Verify the drawer is updated with the new policy information
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #577192 (closed)
Edited by Alexander Turinske

