Load group Vulnerability Report when only subgroups have projects
This changes the group Vulnerability Report's has_projects
property
implementation so that it accounts for sub-groups. This fixes an issue
where, if a group did not have any projects but had sub-groups that did,
the Vulnerability Report would be stuck in the empty state because the
has_projects
property evaluated to false
as it only looked for
top-level projects.
How to test this?
- Create a new group.
- In that group, create a sub-group.
- In the sub-group, create a project.
- Populate the project with some vulnerabilities (one way to do this would be to setup and run an on-demand scan against some website).
- Navigate to the parent group's Vulnerability Report.
- The page should not render an empty state.
- You should see the vulnerabilities from the project you've just created.
Related to #357852 (closed)