Skip to content

Draft: Update yaml to match policy file

What does this MR do and why?

Update yaml to match policy file

  • update default yaml
  • update yaml => policy conversion
  • update schema validation

Changelog: changed

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.

Before After
new_yaml_small

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project/group => Secure => Policies => New policy => Merge request approval policy
  3. Verify the new yaml
  4. Make changes and verify it gets updated
  5. Make changes in yaml mode and verify it gets updated properly
  6. Verify the yaml schema validation works in yaml mode
  7. Save the policy
  8. Verify it saves properly

Related to #478628 (closed)

Merge request reports

Loading