Skip to content

Add Cost Factored Storage Size to GraphQL ProjectStatistics Response

What does this MR do and why?

Add the cost factored total storage size of the project to the GraphQL ProjectStatistics response.

The cost factored storage size is the total storage size of the project with any cost factor for forks applied. A fork may have a cost factor applied based on its visibility and the root namespace subscription. For a project that is not a fork, the cost factored storage size will always equal the total storage size.

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

See also https://gitlab.com/gitlab-org/gitlab/-/issues/373914 for more general information about the cost factor for forks.

See the epic for cost factors for forks here: https://gitlab.com/groups/gitlab-org/-/epics/10100

See the associated frontend changes here: !125051 (merged)

The cost factor will not apply to private forks in free namespaces. See the note here for more details: https://gitlab.com/groups/gitlab-org/-/epics/10100#note_1465861368

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