Add ability to create (GitLab) issue from new finding modal
What does this MR do and why?
Adds the capability to create an issue for the given finding from within the standalone finding modal.
Screenshots or screen recordings
Success
Screen_Recording_2023-04-12_at_3.27.24_pm
Error
Screen_Recording_2023-04-12_at_3.29.59_pm
How to set up and validate locally
Setup
- You'll need an EE License
- You'll need to have runners enabled (See $2408961 for setting up a runner)
- Import https://gitlab.com/svedova/test-remediations-v2
- Run a pipeline on master
You will need to enable a feature flag:
echo "Feature.enable(:pipeline_security_dashboard_graphql)" | rails c
Validation
- Go to the pipeline's security report tab
- Click on a finding that does not have an issue associated
- Click on the "Create issue" button
- Verify that the loading indicator is showing, the issue gets created and the browser redirects to it
- Navigate back to the pipeline's security report tab
- Click on the same issue and verify that the issue note is displayed and the "Create issue" button is not showing
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 #393376 (closed)
Edited by David Pisek