Skip to content

Add cost_factored_storage_size to RootStorageStatistics GraphQL Type

What does this MR do and why?

Add cost_factored_storage_size to RootStorageStatisticsType GraphQL type.

Move the cost factored storage size calculation from the RootSize class to the RootStorageStatistics model.

This is required by the frontend to display the total namespace storage size taking into account the cost factor for forks.

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/393583 and see also https://gitlab.com/gitlab-org/gitlab/-/issues/393580

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