Skip to content

Background Migration to attach findings to their issues with IssueLink Records

In the process of deprecating Vulnerability Feedback, the IngestIssueLinks task will become redundant, as the action of creating a Issue from a Finding will create a present_on_default_branch: false Vulnerability record to attach the Issue too with a IssueLink.

However, there are existing findings in the database which do not have IssueLink records associated which will need to be attached before the deprecation of the Vulnerability::Feedback model is enacted.

Context: !106311 (comment 1207793408)

Implementation plan:

  • Write a migration to create vulnerabilities issue link for issue feedbacks

How to monitor the migration:

Progress: /chatops run batched_background_migrations status 373 in #production on Slack

Errors: https://log.gprd.gitlab.net/goto/b386b7f0-b203-11ed-85ed-e7557b0a598c

Sidekiq errors: https://log.gprd.gitlab.net/goto/1c2f74e0-b457-11ed-85ed-e7557b0a598c

Edited by Gregory Havenga