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:
-
Project archived - !188778 (merged) -
Project deleted - !188778 (merged) -
Project moved to a new parent - !187742 (merged) -
Group archived -
Group deleted - !191189 (merged) -
Group moved to a new parent - !187742 (merged)
AnalyzerProjectStatus:
-
Project archived - Mark records as archived (for adjustment service to ignore them) - !189540 (closed)
AnalyzerNamespaceStatus:
-
Project archived - Done @ysiev - !191931 (merged) -
Project deleted - Done @ysiev - !191931 (merged) -
Project moved to a new parent - !192449 (merged) -
Group archived -
Group deleted - In dev @ysiev - !193404 (merged) -
Group moved to a new parent - !192449 (merged)
Edited by Gal Katz