Skip to content

Resolve "Varying behavior in policies linked to compliance frameworks"

What does this MR do and why?

This MR fixes weird issues regarding approval policies drawer inside "edit framework" screen Issues were caused due to incorrect type detection, because of migration types from ScanResultPolicy to ApprovalPolicy

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

Screen_Recording_2024-07-07_at_15.48.16

How to set up and validate locally

  1. Create new compliance framework under 'Security' 'Compliance center' 'Frameworks'
  2. In top-level group create new Merge request approval policy, under "Security" "Policies". Make sure that policy scope is set to compliance framework

image

  1. Go back to Compliance center -> Frameworks and start editing framework
  2. Observe created policy under policies section, open drawer of this policy
  3. Observer correct policy description (two tabs, yaml on second page)

Related to Varying behavior in policies linked to complian... (#462216 - closed)

Edited by Illya Klymov

Merge request reports