Render "create merge request" in solution card
What does this MR do and why?
This MR renders the "create merge request" text by utilizing the "mergeRequest" GraphQL query response.
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
How to set up and validate locally
Setup
- Have the related FF enabled:
echo "Feature.enable(:pipeline_security_dashboard_graphql)" | rails c
- You'll need an EE License
- You'll need to have runners enabled (See $2408961 for setting up a runner)
- Import https://gitlab.com/gitlab-examples/security/security-reports
- Run a pipeline on master
Validation
- Go to the pipeline's security report tab
- Select Tool filter > "Container Scanning"
- Click on the finding with the title "CVE ..."
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #385203 (closed)
Edited by Samantha Ming