Skip to content

Calculate and Store Storage Sizes of Forks in Root Storage Statistics

Jason Goodman requested to merge add-forks-to-root-statistics-recalculate into master

What does this MR do and why?

Calculate and store total storage sizes for all forks in the namespace when root storage statistics are recalculated.

This MR populates the public_forks_storage_size, internal_forks_storage_size, and private_forks_storage_size columns on the namespace_root_storage_statistics table whenever we invoke Namespace::RootStorageStatistics#recalculate!.

This is feature flagged off.

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/399368

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jason Goodman

Merge request reports