Skip to content

Update create merge request service to be compatible with transactions

What does this MR do and why?

The MR !96921 (merged) will add a new service that creates a new Vulnerability, Merge Request, and a Merge Request Link wrapped in a transaction as discussed here.

During the development of MR !96921 (merged) we noticed the MR creation couldn't be included in a transaction.

To include the MR creation in a transaction, the merge_requests/create_service.rb needs to be updated.

As suggested here we are moving the changes to the merge_requests/create_service.rb to this MR.

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.

Edited by Marcos Rocha

Merge request reports

Loading