[frontend] Add resolve limit info message

Why are we doing this work

Initally, we will have a limit of the amount of vulnerabilities that can be auto-resolved per pipeline run. To make sure the user who configures the policy is aware of this, show an info message in the policy editor.

Non-functional requirements

  • Documentation:
  • Feature flag: vulnerability_management_policy_type
  • Performance:
  • Testing: unit tests

Design

Implementation plan

  1. Add message to policy editor

Verification steps

  1. Go to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/vulnerability-management-policy/security-reports/-/security/policies
  2. Click "New policy"
  3. Click "Select policy" on the vulnerability management policy tile
  4. Verify there is an info alert, that is not dismissable, in the rules section of the policy editor, which mentions: "In each pipeline, a maximum of 1000 vulnerabilities that are no longer detected will be set to status Resolved until all have been auto-resolved."
Edited by Lorenz van Herwaarden