Skip to content

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

  1. Upload a GitLab Ultimate license
  2. Enable the security_policy_approval_warn_mode feature flag (http://gdk.test:3000/rails/features)
  3. Navigate to a project/group => Secure => Policies => New policy => Merge Request Approval Policyh => Create a warn mode policy
  4. Navigate to a project/group => Secure => Policies => Select the new policy
  5. 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

Merge request reports

Loading