Skip to content

Utilize Vulnerabilities::Statistic model for stats on GraphQL API

What does this MR do?

Previously we were calculating the vulnerability statistics for projects on-the-fly but with the recent changes, we are now pre-calculating the statistics and storing them in the database for performance reasons. This MR makes it possible to utilize pre-calculated values instead of calculating the statistics again and again.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Merge request reports