Skip to content

Update Vulnerability Report GraphQL to use `has_vulnerability_resolution` database field

Why are we doing this work

Work was done to add a new GraphQL field in Expose `has_ai_resolution` via GraphQL (#490323 - closed). This query continues to check against the static CWE list, while it can now be switched to use the has_vulnerability_resolution field in the database (populated in #486530 (closed)). This change is important to retain data parity between the "Has resolution available" #481528 (closed) filtering and display of the icon in the table.

Note:This issue is for the Vulnerability Report. There is a separate issue #499978 (closed) for the Vulnerability Details page.

File: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/models/vulnerabilities/finding.rb?ref_type=heads#L551

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

Verification steps

Edited by Neil McCorrison