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
3b18bf50
Commit
3b18bf50
authored
Jun 25, 2020
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add snippets_size to ProjectStatistics GraphQL type
parent
67a0b331
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
2 deletions
+29
-2
app/graphql/types/project_statistics_type.rb
app/graphql/types/project_statistics_type.rb
+2
-0
changelogs/unreleased/fj-223706-add-snippets-size-to-project-statistics-type.yml
...j-223706-add-snippets-size-to-project-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
+14
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/project_statistics_type_spec.rb
spec/graphql/types/project_statistics_type_spec.rb
+2
-2
No files found.
app/graphql/types/project_statistics_type.rb
View file @
3b18bf50
...
...
@@ -21,5 +21,7 @@ module Types
description:
'Packages size of the project'
field
:wiki_size
,
GraphQL
::
FLOAT_TYPE
,
null:
true
,
description:
'Wiki size of the project'
field
:snippets_size
,
GraphQL
::
FLOAT_TYPE
,
null:
true
,
description:
'Snippets size of the project'
end
end
changelogs/unreleased/fj-223706-add-snippets-size-to-project-statistics-type.yml
0 → 100644
View file @
3b18bf50
---
title
:
Add snippets_size to ProjectStatistics GraphQL type
merge_request
:
35319
author
:
type
:
changed
doc/api/graphql/reference/gitlab_schema.graphql
View file @
3b18bf50
...
...
@@ -10134,6 +10134,11 @@ type ProjectStatistics {
"""
repositorySize
:
Float
!
"""
Snippets
size
of
the
project
"""
snippetsSize
:
Float
"""
Storage
size
of
the
project
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
3b18bf50
...
...
@@ -29952,6 +29952,20 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "snippetsSize",
"description": "Snippets size of the project",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "storageSize",
"description": "Storage size of the project",
doc/api/graphql/reference/index.md
View file @
3b18bf50
...
...
@@ -1478,6 +1478,7 @@ Represents a Project Member
|
`lfsObjectsSize`
| Float! | Large File Storage (LFS) object size of the project |
|
`packagesSize`
| Float! | Packages size of the project |
|
`repositorySize`
| Float! | Repository size of the project |
|
`snippetsSize`
| Float | Snippets size of the project |
|
`storageSize`
| Float! | Storage size of the project |
|
`wikiSize`
| Float | Wiki size of the project |
...
...
spec/graphql/types/project_statistics_type_spec.rb
View file @
3b18bf50
...
...
@@ -3,9 +3,9 @@
require
'spec_helper'
RSpec
.
describe
GitlabSchema
.
types
[
'ProjectStatistics'
]
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
,
:build_artifacts_size
,
:packages_size
,
:commit_count
,
:wiki_size
)
:wiki_size
,
:snippets_size
)
end
end
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