Commit b1505e24 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'mo-pipeline-artifacts-size-graphql' into 'master'

Add pipeline_artifacts_size to RootStorageStatisticsType

See merge request gitlab-org/gitlab!44595
parents 147833fb 5e48afeb
...@@ -13,5 +13,6 @@ module Types ...@@ -13,5 +13,6 @@ module Types
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' field :snippets_size, GraphQL::FLOAT_TYPE, null: false, description: 'The snippets size in bytes'
field :pipeline_artifacts_size, GraphQL::FLOAT_TYPE, null: false, description: 'The CI pipeline artifacts size in bytes'
end end
end end
---
title: Add pipeline_artifacts_size to RootStorageStatisticsType
merge_request: 44595
author:
type: changed
...@@ -16251,6 +16251,11 @@ type RootStorageStatistics { ...@@ -16251,6 +16251,11 @@ type RootStorageStatistics {
""" """
packagesSize: Float! packagesSize: Float!
"""
The CI pipeline artifacts size in bytes
"""
pipelineArtifactsSize: Float!
""" """
The Git repository size in bytes The Git repository size in bytes
""" """
......
...@@ -46995,6 +46995,24 @@ ...@@ -46995,6 +46995,24 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "pipelineArtifactsSize",
"description": "The CI pipeline artifacts size in bytes",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "repositorySize", "name": "repositorySize",
"description": "The Git repository size in bytes", "description": "The Git repository size in bytes",
...@@ -2192,6 +2192,7 @@ Autogenerated return type of RevertVulnerabilityToDetected. ...@@ -2192,6 +2192,7 @@ Autogenerated return type of RevertVulnerabilityToDetected.
| `buildArtifactsSize` | Float! | The CI artifacts size in bytes | | `buildArtifactsSize` | Float! | The CI artifacts size in bytes |
| `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 |
| `pipelineArtifactsSize` | Float! | The CI pipeline artifacts 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 | | `snippetsSize` | Float! | The snippets size in bytes |
| `storageSize` | Float! | The total storage in bytes | | `storageSize` | Float! | The total storage in bytes |
......
...@@ -7,7 +7,8 @@ RSpec.describe GitlabSchema.types['RootStorageStatistics'] do ...@@ -7,7 +7,8 @@ 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, :snippets_size) :build_artifacts_size, :packages_size, :wiki_size, :snippets_size,
:pipeline_artifacts_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