Skip to content

Add source information to policy drawer

What does this MR do and why?

  • Update policy drawer with source information
  • Update tests

Changelog: added

EE: true

Screenshots or screen recordings

Page Screenshot
Project-level with project policy project-level_policy
Project-level with inherited policy inherited_group-level_policy
Group-level with group policy group-level_policy

How to set up and validate locally

  1. Enable :group_level_security_policies feature flag
  2. Upload a GitLab Ultimate license
  3. Navigate to a group => Security & Compliance => Policies and assign a policy project with policies in it (or create some yourself)
  4. Navigate to a project in that group => Security & Compliance => Policies and assign a different policy project with policies in it (or create some yourself)
  5. Verify the policies listed in both the group and project

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #345321 (closed)

Merge request reports