Skip to content

Add download-patch to GraphQL pipeline modal

David Pisek requested to merge 403227-render-download-patch-in-modal-footer into master

What does this MR do and why?

Adds "Download Patch to resolve" button to new, GraphQL finding modal.

Screenshots or screen recordings

Screenshot_2023-03-30_at_6.39.44_pm

How to set up and validate locally

Setup

  1. Have the related FF enabled: echo "Feature.enable(:pipeline_security_dashboard_graphql)" | rails c
  2. You'll need an EE License
  3. You'll need to have runners enabled (See $2408961 for setting up a runner)
  4. Import https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/test-remediations
  5. Run a pipeline on master

Validation

  1. Go to the pipeline's security report tab
  2. Open a finding
  3. Verify that the button renders and the patch can be downloaded

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

Edited by David Pisek

Merge request reports