Add a service to create a merge request from a security finding
What does this MR do and why?
Describe in detail what your merge request does and why.
As part of issue #368311 (closed), we are updating the Projects::VulnerabilityFeedbackController to create Vulnerability on the fly for a given Finding.
When interacting with security findings, the user has the option to create a MergeRequest for the given Finding.
This Merge Request adds a new service to create a MergeRequest for a given finding.
This new Service will also create a new Vulnerability if needed and a Merge Request Link wrapped in a transaction as discussed here.
- This will not create a new
Vulnerabilities::Feedbackobject but only aVulnerability. - We will need to set the
present_on_default_branchto false for these new vulnerabilities
This new Service will be used by the Projects::VulnerabilityFeedbackController.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.