Skip to content

Add vulnerability history to graphql

Avielle Wolfe requested to merge add-vulnerability-history-to-graphql into master

What does this MR do?

This MR adds fields to GraphQL for fetching vulnerability history data. It fetches data in chunks of 10 days to avoid overloading the database. In a future MR, the results will be cached daily to further improve performance.

  • Adds vulnerability_severities_count_by_day fields to QueryType and GroupType
  • Adds VulnerabilitySeverityCountType, which represents the number of vulnerabilities for a specific day and severity
  • Adds VulnerabilityHistoryResolver, which concatenates queries for vulnerability history
  • Extracts VulnerabilitiesBaseResolver to encapsulate complex logic for selecting vulnerable object

Issue: Back 'Vulnerabilities over time' report with Standalone Vulnerability data on Instance & Group Security Dashboard

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Avielle Wolfe

Merge request reports