606a1d2d31
Root namespaces have storage statistics. This commit 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 } } }
5 lines
127 B
Ruby
5 lines
127 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Namespace::RootStorageStatisticsPolicy < BasePolicy
|
|
delegate { @subject.namespace }
|
|
end
|