Skip to content

Add action section functionality

Alexander Turinske requested to merge 454284-functionality into master

What does this MR do and why?

Add action section functionality

  • allow for update of override
  • add validation of file path
  • update tests
  • since this is not the final design, UX does not need to be involved

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.

code-block-action

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. Enable feature flag
echo "Feature.enable(:pipeline_execution_policy_type)" | rails c
  1. Navigate to http://gdk.test:3443/gitlab-org/gitlab-test/-/security/policies/new?type=pipeline_execution_policy
  2. Verify the action content and change all the properties
  3. Verify the yaml updates appropriately
  4. Update the project/ref/file that does not exist
  5. Verify the validation occurs and shows the configuration is invalid
  6. Update the project/ref/file that does exist
  7. Verify the invalid validation disappears and show it is valid

Related to #454284

Edited by Alexander Turinske

Merge request reports