Add option to render group scope list with links

What does this MR do and why?

Policy drawer Scope section:

  1. Policy group scope now renders a list of groups and projects with links
  2. Link leads to policy list of selected project

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
Linked list Screenshot 2024-08-28 at 16.09.13.png

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

  7. Go back to list

  8. Make sure you have saved policy in list and it has groups scope in scope column

  9. Click on a policy row, make sure changes are reflected in policy scope section of a drawer and list contain links

Related to #480926 (closed)

Merge request reports

Loading