Add validation for policy scope
What does this MR do and why?
This MR adds validation for policy scope
Users see validation for empty compliance frameworks and specific projects
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.
Description | UI |
---|---|
Validation for compliance frameworks excluding and specific projects |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Feature.enable(:security_policies_policy_scope)
Feature.enable(:security_policies_policy_scope_project)
- Go to Settings -> General
- Toggle the Permissions and group features section
- Enable Security policy scope
- Go to Project/Group
- Secure -> Policies -> New Policy -> result or execution policy
- Select compliance frameworks, unselect make sure there is validation error
- Select specific projects and all projects in group with exceptions, unselect make sure there is validation error
Related to #442536 (closed)
Edited by Artur Fedorov