Commit b4edc9c0 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch 'fj-224658-add-snippets-size-to-root-storage-statistics-type' into 'master'

Add snippets_size to RootStorageStatisticsType

See merge request gitlab-org/gitlab!35586
parents 3fdaf03d 8f3812be
...@@ -12,5 +12,6 @@ module Types ...@@ -12,5 +12,6 @@ module Types
field :build_artifacts_size, GraphQL::FLOAT_TYPE, null: false, description: 'The CI artifacts size in bytes' field :build_artifacts_size, GraphQL::FLOAT_TYPE, null: false, description: 'The CI artifacts size in bytes'
field :packages_size, GraphQL::FLOAT_TYPE, null: false, description: 'The packages size in bytes' field :packages_size, GraphQL::FLOAT_TYPE, null: false, description: 'The packages size in bytes'
field :wiki_size, GraphQL::FLOAT_TYPE, null: false, description: 'The wiki size in bytes' field :wiki_size, GraphQL::FLOAT_TYPE, null: false, description: 'The wiki size in bytes'
field :snippets_size, GraphQL::FLOAT_TYPE, null: false, description: 'The snippets size in bytes'
end end
end end
---
title: Add snippets_size to RootStorageStatisticsType
merge_request: 35586
author:
type: changed
...@@ -11244,6 +11244,11 @@ type RootStorageStatistics { ...@@ -11244,6 +11244,11 @@ type RootStorageStatistics {
""" """
repositorySize: Float! repositorySize: Float!
"""
The snippets size in bytes
"""
snippetsSize: Float!
""" """
The total storage in bytes The total storage in bytes
""" """
......
...@@ -33011,6 +33011,24 @@ ...@@ -33011,6 +33011,24 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "snippetsSize",
"description": "The snippets size in bytes",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "storageSize", "name": "storageSize",
"description": "The total storage in bytes", "description": "The total storage in bytes",
...@@ -1623,6 +1623,7 @@ Counts of requirements by their state. ...@@ -1623,6 +1623,7 @@ Counts of requirements by their state.
| `lfsObjectsSize` | Float! | The LFS objects size in bytes | | `lfsObjectsSize` | Float! | The LFS objects size in bytes |
| `packagesSize` | Float! | The packages size in bytes | | `packagesSize` | Float! | The packages size in bytes |
| `repositorySize` | Float! | The Git repository size in bytes | | `repositorySize` | Float! | The Git repository size in bytes |
| `snippetsSize` | Float! | The snippets size in bytes |
| `storageSize` | Float! | The total storage in bytes | | `storageSize` | Float! | The total storage in bytes |
| `wikiSize` | Float! | The wiki size in bytes | | `wikiSize` | Float! | The wiki size in bytes |
......
...@@ -7,7 +7,7 @@ RSpec.describe GitlabSchema.types['RootStorageStatistics'] do ...@@ -7,7 +7,7 @@ RSpec.describe GitlabSchema.types['RootStorageStatistics'] do
it 'has all the required fields' do it 'has all the required fields' do
expect(described_class).to have_graphql_fields(:storage_size, :repository_size, :lfs_objects_size, expect(described_class).to have_graphql_fields(:storage_size, :repository_size, :lfs_objects_size,
:build_artifacts_size, :packages_size, :wiki_size) :build_artifacts_size, :packages_size, :wiki_size, :snippets_size)
end end
specify { expect(described_class).to require_graphql_authorizations(:read_statistics) } specify { expect(described_class).to require_graphql_authorizations(:read_statistics) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment