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.
- Upload a GitLab Ultimate license
- Navigate to a project/group => Secure => Policies => New policy => Merge request approval policy
- Verify the new yaml
- Make changes and verify it gets updated
- Make changes in yaml mode and verify it gets updated properly
- Verify the yaml schema validation works in yaml mode
- Save the policy
- Verify it saves properly
Related to #478628 (closed)