Skip to content

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)
image image

How to set up and validate locally

Prerequisites

  1. Have an EE enabled GDK setup (docs)
  2. Have a gitlab runner set up for your GDK (docs]

Seed the security dashboard

  1. clone project

  2. run pipeline for default branch

    • after running the pipeline you should see the webgoat project in the group-level security dashboard
    Screenshot of security dashboard

    image

  3. archive the webgoat

    • without this MR you will still see the webgoat project in the group-level security dashboard
    Screenshot of security dashboard

    image

    • with this MR you will no longer see the webgoat projectin the group-level security dashboard
    Screenshot of security dashboard

    image


resolves: #11478 (closed)

Changelog: fixed
EE: true

Edited by Michael Becker

Merge request reports

Loading