Skip to content

Update isValidPolicy util to default primary keys

Alexander Turinske requested to merge 396840-abstract-out-resusable-values into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Update isValidPolicy util to default primary keys

  • move common primary keys into a constants file
  • update tests

Changelog: changed

EE: true

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

No visual change

How to set up and validate locally

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

  1. Upload a GitLab Ultimate license
  2. Navigate to a project => Security & Compliance => Policies => New policy
  3. Navigate to each policy type and mess around with primary yaml keys and verify rule mode is enabled/disabled

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 #396840 (closed)

Merge request reports