Fix the dismissed vulnerabilities without dismissal information and dismissal feedback

Why are we doing this work

There are 510 vulnerability records without dismissal information which couldn't be migrated as part of the effort done in #262112 (closed) because of the missing dismissal feedback records. We should fix the problem with these vulnerability records either by setting them back to the DETECTED state or setting the dismissal information with something as a placeholder.

Relevant links

Implementation plan

  • database Fix the broken dismissed vulnerability records by populating the missing dismissal information through a background migration
    • vulnerability.dismissed_at = vulnerability.updated_at
    • vulnerability.dismissed_by_id = vulnerability.updated_by_id || vulnerability.last_edited_by_id || vulnerability.author_id
Edited by Mehmet Emin INAC