Skip to content

Add ability to remove resolved vulnerabilities

What does this MR do and why?

This MR introduces a new argument for the existing VulnerabilitiesRemoveAllFromProject GraphQL mutation called resolved_on_default_branch to remove only the vulnerabilities no longer detected for a project.

Related to #474793+.

Database review

The only query introduced in this MR is the following one;

Filter `vulnerability_reads`
SELECT
    "vulnerability_reads"."vulnerability_id"
FROM
    "vulnerability_reads"
WHERE
    "vulnerability_reads"."project_id" = 278964
    AND "vulnerability_reads"."resolved_on_default_branch" = TRUE
LIMIT 100
Edited by Mehmet Emin INAC

Merge request reports

Loading