Skip to content

Add new fields for orchestration helper

What does this MR do and why?

User can create limited number of every policy type.

Similar to other types, pipeline execution policy type has 2 fields:

  1. Maximum number of created policies
  2. If this limit has been reached

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.

Description UI
New fields added to data set for policy editor Screenshot 2024-04-17 at 12.47.55.png

How to set up and validate locally

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

Enable feature flag

Feature.enable(:pipeline_execution_policy_type)
  1. Go to ee/app/helpers/ee/security_orchestration_helper.rb check if fields are there
  2. you can check if fields are returned in dataset in ee/app/assets/javascripts/security_orchestration/policy_editor.js
  3. Secure -> Policies -> New policy

Related to #456459 (closed)

Edited by Artur Fedorov

Merge request reports