Remove the archived projects from the security dashboard
What does this MR do and why?
We have a bug where archived projects are showing up in the security dashboard. That dashboard should only show stats from un-archived projects.
This change excludes archived projects from the queries and add specs
MR Note:
I had attempted to also refactor the class to unify the project fetching logic. That MR did not make it through review, so I do not structurally change any of this code, just exclude projects
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before (archived project included) | After (archived project excluded) |
---|---|
How to set up and validate locally
Prerequisites
Seed the security dashboard
-
clone project
-
run pipeline for default branch
- after running the pipeline you should see the webgoat project in the group-level security dashboard
-
archive the webgoat
- without this MR you will still see the webgoat project in the group-level security dashboard
- with this MR you will no longer see the webgoat projectin the group-level security dashboard
resolves: #11478 (closed)
Changelog: fixed
EE: true
Edited by Michael Becker