Skip to content

Render "create merge request" in solution card

Samantha Ming requested to merge 385203-solution-card-mr into master

What does this MR do and why?

This MR renders the "create merge request" text by utilizing the "mergeRequest" GraphQL query response.

🐛 Notice

There is a known bug that triggers an error when the remediation is null. This will be fixed in this issue > #388655 (closed).

Screenshots or screen recordings

image

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-examples/security/security-reports
  5. Run a pipeline on master

Validation

  1. Go to the pipeline's security report tab
  2. Select Tool filter > "Container Scanning"
  3. Click on the finding with the title "CVE ..."
  4. Verify that the "Solution" renders as expected

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

Edited by Samantha Ming

Merge request reports

Loading