Skip to content

Remove call to vulnerabilities feedback controller from pipeline security tab 'Create Issue' button

At the time of writing the Create Issue button on the Pipeline -> Security tab calls the Projects::VulnerabilityFeedbackController#create action.

Screenshot_from_2023-08-28_11-25-37


image

We intend to remove this controller in Remove Projects::VulnerabilityFeedbackController (#419214) so we need to update the Create Issue button to not call this controller.

Implementation Outline

  • Use mutation within action instead of axios POST
  • Add specs

Poc branch: dpisek/poc-graphql-issue-creation

Verification Steps

  1. Go to a pipeline with a project that has vulnerabilities and navigate to the "security" tab
  2. Click on the "Create Issue" button on the right side of a finding's row
  3. Verify that all the "Create Issue" buttons within the table are replaced with a loading spinner
  4. Verify that once the issue has been created a redirect to it happens
Edited by David Pisek