Skip to content

Add support for group archive in analyzer statuses

What does this MR do and why?

Adds support for group archive event in analyzer statuses by:

  1. Iterating over project-level analyzer statuses and updating their archived flag based on project.self_or_ancestors_archived? to inherit archive status from ancestor groups.
  2. Scheduling a RecalculateWorker to recalculate group-level analyzer statistics and propagate the changes up through all ancestor groups.
  3. Implementing a delayed execution mechanism where the recalculation delay is proportional to the number of affected project-level records.

This ensures that when a group is archived, all analyzer statuses for projects within that group (and nested subgroups) are correctly marked as archived and reflected in group-related records.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to Make Security::AnalyzersStatus::ProcessArchived... (#572476) • Gal Katz • Backlog

Edited by Gal Katz

Merge request reports

Loading