Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5e48afeb
Commit
5e48afeb
authored
Oct 07, 2020
by
Maxime Orefice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This commit adds pipeline_artifacts_size to RootStorageStatisticsType
which exposes it to our GraphQL API.
parent
09adf1cd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
1 deletion
+32
-1
app/graphql/types/root_storage_statistics_type.rb
app/graphql/types/root_storage_statistics_type.rb
+1
-0
changelogs/unreleased/mo-pipeline-artifacts-size-graphql.yml
changelogs/unreleased/mo-pipeline-artifacts-size-graphql.yml
+5
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+5
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+18
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/root_storage_statistics_type_spec.rb
spec/graphql/types/root_storage_statistics_type_spec.rb
+2
-1
No files found.
app/graphql/types/root_storage_statistics_type.rb
View file @
5e48afeb
...
...
@@ -13,5 +13,6 @@ module Types
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
: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
changelogs/unreleased/mo-pipeline-artifacts-size-graphql.yml
0 → 100644
View file @
5e48afeb
---
title
:
Add pipeline_artifacts_size to RootStorageStatisticsType
merge_request
:
44595
author
:
type
:
changed
doc/api/graphql/reference/gitlab_schema.graphql
View file @
5e48afeb
...
...
@@ -16120,6 +16120,11 @@ type RootStorageStatistics {
"""
packagesSize
:
Float
!
"""
The
CI
pipeline
artifacts
size
in
bytes
"""
pipelineArtifactsSize
:
Float
!
"""
The
Git
repository
size
in
bytes
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
5e48afeb
...
...
@@ -46669,6 +46669,24 @@
"isDeprecated": false,
"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",
"description": "The Git repository size in bytes",
doc/api/graphql/reference/index.md
View file @
5e48afeb
...
...
@@ -2182,6 +2182,7 @@ Autogenerated return type of RevertVulnerabilityToDetected.
|
`buildArtifactsSize`
| Float! | The CI artifacts size in bytes |
|
`lfsObjectsSize`
| Float! | The LFS objects 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 |
|
`snippetsSize`
| Float! | The snippets size in bytes |
|
`storageSize`
| Float! | The total storage in bytes |
...
...
spec/graphql/types/root_storage_statistics_type_spec.rb
View file @
5e48afeb
...
...
@@ -7,7 +7,8 @@ RSpec.describe GitlabSchema.types['RootStorageStatistics'] do
it
'has all the required fields'
do
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
specify
{
expect
(
described_class
).
to
require_graphql_authorizations
(
:read_statistics
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment