Skip to content

Add group/subgroup option in policy scope

Artur Fedorov requested to merge 470059-policies-group-option-policy-scope into master

What does this MR do and why?

The code diff is related to the scope section of a policy editor.

It introduces a new feature that allows selecting groups to apply policies to, in addition to projects.

It also includes various error messages and alerts to guide users in selecting the appropriate scope for their policies.

The code also includes a number of improvements to the user interface, such as the use of collapsible list boxes and tooltips to provide additional information and guidance to users.

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
New policy scope new group scope.mov
Existing policy scope existing policy.mov

How to set up and validate locally

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

  1. Enable feature flag:

    echo "Feature.enable(:policy_group_scope)" | rails c
  2. Go to a group

  3. Secure -> Policies

  4. New policy => any type

  5. Make sure there is an option all projects in linked groups

  6. Select it, select groups exception projects -> save policy

Related to #470059 (closed)

Edited by Artur Fedorov

Merge request reports

Loading