Fix counting new vulnerabilities in ingestion logic

What does this MR do and why?

When a vulnerability transitions from not present_on_default_branch to present_on_default_branch, we must count it as a new vulnerability.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/474280+, and Update vulnerability_count column in report ing... (!162415 - merged).

Edited by Mehmet Emin INAC

Merge request reports

Loading