Display number of items for each group
Summary
Under each group, we want to display the number of items as shown in the image:
Implementation plan
- The Frontend will use the existing endpoints to group the counts (make multiple queries)
- When POC 2 query approach for vulnerability grouping (!131888 - closed) • Bala Kumar • 16.5 is merged, we will switch the Frontend multiple queries into this single query
- In the future, if we need performance tuning, we will introduce a separate
groups
filter, which will tell the backend to group by only by specified fields.
Verification steps
-
Go to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/verify-epic-10164/-/security/vulnerability_report -
Select Severity
from the Group By Dropdown -
Check that counts are displayed correctly -
Select Status
from the Group By Dropdown -
Check that counts are displayed correctly -
Subsequent calls should not make additional requests if filters do not change
Edited by Savas Vedova