Update statistics on project or group delete or transfer

When a project or group is deleted, transferred or archived, the statistics counters should be updated accordingly.

This applies to vulnerability_namespace_statistics, analyzer_project_statuses and analyzer_namespace_statuses.

Specifically, the analyzers associated with the deleted project should be subtracted from the group-level counters of its ancestor groups. (Unlike the vulnerability statistics, no scheduled work exists to synchronize the data in this case for now)

Status:

Namespace statistics:

AnalyzerProjectStatus:

  • Project archived - Mark records as archived (for adjustment service to ignore them) - !189540 (closed)

AnalyzerNamespaceStatus:

Edited by Gal Katz