Refactors primary keys validations

What does this MR do and why?

This code update modifies the primary keys used in several components of the policy editor. It introduces a new constant called PRIMARY_POLICY_KEYS and updates various functions to use this constant instead of hard-coded lists of keys. This change ensures consistency in the keys used across different parts of the policy editor and simplifies future updates to the primary keys. Additionally, it removes the pipeline_config_strategy key from the primary keys in the policy editor pipeline execution component.

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.

***NO VISUAL CHANGES***

How to set up and validate locally

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

  1. Go to Group?project
  2. Secure -> Policies
  3. Try every New. policy type, make sure editor mode is not disabled

Related to #471863 (closed)

Merge request reports

Loading