Skip to content

[Database] DB schema and migrations to support filtering of vulnerabilities by identifier

As per the requirement and the MVC scope discussed in #432419 (closed) we need to have identifiers stored in vulnerabilitiy_reads table to support filtering of vulnerabilities by identifiers on the vulnerability report page.

In this issue we track the DB related work to implement the feature.

Implementation details

Abandoned old plan:

Reason: #460080 (comment 2007295428)

  • backend database Include identifiers column of array text type in vulnerability_reads.
  • backend database Ingest new vulnerability identifiers into the array column in vulnerability_reads.
  • backend database Data backfill migration to populate the already existing identifiers to vulnerability_reads.
New plan:

With the requirement to use identifier.name in the vulnerability_reads array column the revised implementation looks like:

Edited by Bala Kumar