Skip to content

Expose namespace storage statistics with GraphQL

Alessio Caiazza requested to merge ac-graphql-root-namespace-stats into master

What does this MR do?

Related issue: #62796 (moved)

With #62214 (closed) namespaces now have storage statistics.

This MR allows namespace owners to get those stats via GraphQL queries like the following one

    {
      namespace(fullPath: "a_namespace_path") {
        rootStorageStatistics {
          storageSize
          repositorySize
          lfsObjectsSize
          buildArtifactsSize
          packagesSize
          wikiSize
        }
      }
    }

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Mayra Cabrera

Merge request reports