Vulnerability severity counts appear to be showing 0 regardless of filter states
Summary
The counts of vulnerabilities by severity are all displaying 0, even when there are results in the report. This is happening regardless of what filters are selected. This is reproducible on the project-level, group-level, and security center vulnerability reports.
Steps to reproduce
Navigate to any vulnerability report with results. Observe the vulnerability counts at the top of the report all indicate 0 results for each severity level.
Example Project
- https://staging.gitlab.com/secure-team-test/security-reports/-/security/vulnerability_report/?state=all
- https://gitlab.com/groups/gitlab-org/-/security/vulnerabilities
What is the current bug behavior?
Even when there are results in the Vulnerability Report, the counts at the top of the report all indicate 0 results for each severity level. This is the case regardless of the filters selected.
What is the expected correct behavior?
When there are results in the Vulnerability Report, the counts at the top of the report should indicate the correct number of results for each severity level.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)