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
- The discussion about the broken entries: #262112 (comment 446105373)
- The original background migration: !46370 (merged)
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