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
8f3812be
Commit
8f3812be
authored
Jun 30, 2020
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add snippets_size to RootStorageStatisticsType
parent
bf8f3cd8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
1 deletion
+31
-1
app/graphql/types/root_storage_statistics_type.rb
app/graphql/types/root_storage_statistics_type.rb
+1
-0
changelogs/unreleased/fj-224658-add-snippets-size-to-root-storage-statistics-type.yml
...658-add-snippets-size-to-root-storage-statistics-type.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
+1
-1
No files found.
app/graphql/types/root_storage_statistics_type.rb
View file @
8f3812be
...
...
@@ -12,5 +12,6 @@ module Types
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
: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
changelogs/unreleased/fj-224658-add-snippets-size-to-root-storage-statistics-type.yml
0 → 100644
View file @
8f3812be
---
title
:
Add snippets_size to RootStorageStatisticsType
merge_request
:
35586
author
:
type
:
changed
doc/api/graphql/reference/gitlab_schema.graphql
View file @
8f3812be
...
...
@@ -11239,6 +11239,11 @@ type RootStorageStatistics {
"""
repositorySize
:
Float
!
"""
The
snippets
size
in
bytes
"""
snippetsSize
:
Float
!
"""
The
total
storage
in
bytes
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
8f3812be
...
...
@@ -32997,6 +32997,24 @@
"isDeprecated": false,
"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",
"description": "The total storage in bytes",
doc/api/graphql/reference/index.md
View file @
8f3812be
...
...
@@ -1622,6 +1622,7 @@ Counts of requirements by their state.
|
`lfsObjectsSize`
| Float! | The LFS objects size in bytes |
|
`packagesSize`
| Float! | The packages 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 |
|
`wikiSize`
| Float! | The wiki size in bytes |
...
...
spec/graphql/types/root_storage_statistics_type_spec.rb
View file @
8f3812be
...
...
@@ -7,7 +7,7 @@ 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
)
:build_artifacts_size
,
:packages_size
,
:wiki_size
,
:snippets_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