Skip to content

Add validation for policy scope

Artur Fedorov requested to merge 442536-policies-scope-projects-validation into master

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

validation.mov

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)
  1. Go to Settings -> General
  2. Toggle the Permissions and group features section
  3. Enable Security policy scope
  4. Go to Project/Group
  5. Secure -> Policies -> New Policy -> result or execution policy
  6. Select compliance frameworks, unselect make sure there is validation error
  7. 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

Merge request reports