Skip to content

Convert Issues::CreateFromVulnerabilityDataService to work similar to Issues::BuildService

Summary

The following discussion from !40958 (merged) should be addressed:

  • @reprazent started a discussion: (+2 comments)

    Did we consider building an issue and presenting the issue form with this information pre-filled. That way, the user has the opportunity to adjust the issue if they wanted to.

    We do something similar for resolving discussions in merge requests using a new issue in the Issues::BuildService.

    Do you think that would be more consistent?

Implementation plan

  1. Create Issues::BuildFromVulnerabilityService from Issues::BuildService (#250353 (closed))
  2. Add call to IssuesController#new for building the issue from the vulnerability (#284740 (closed))
  3. Add call to IssuesController#create for creating the issue with feedback and issue link (#284740 (closed))
  4. Modify front-end call to new endpoint. (#284804 (closed))
  5. Cleanup unused code (#284817 (closed))
Edited by Jonathan Schafer