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
3c85d519
Commit
3c85d519
authored
Aug 30, 2021
by
Ammar Alakkad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pipeline_artifacts_size to projectSatisticsType
Changelog: changed
parent
f9cf18c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
app/graphql/types/project_statistics_type.rb
app/graphql/types/project_statistics_type.rb
+2
-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
+1
-1
No files found.
app/graphql/types/project_statistics_type.rb
View file @
3c85d519
...
...
@@ -23,6 +23,8 @@ module Types
description:
'Wiki size of the project in bytes.'
field
:snippets_size
,
GraphQL
::
FLOAT_TYPE
,
null:
true
,
description:
'Snippets size of the project in bytes.'
field
:pipeline_artifacts_size
,
GraphQL
::
FLOAT_TYPE
,
null:
true
,
description:
'CI Pipeline artifacts size in bytes.'
field
:uploads_size
,
GraphQL
::
FLOAT_TYPE
,
null:
true
,
description:
'Uploads size of the project in bytes.'
end
...
...
doc/api/graphql/reference/index.md
View file @
3c85d519
...
...
@@ -12965,6 +12965,7 @@ Represents a Project Membership.
|
<a
id=
"projectstatisticscommitcount"
></a>
`commitCount`
|
[
`Float!`
](
#float
)
| Commit count of the project. |
|
<a
id=
"projectstatisticslfsobjectssize"
></a>
`lfsObjectsSize`
|
[
`Float!`
](
#float
)
| Large File Storage (LFS) object size of the project in bytes. |
|
<a
id=
"projectstatisticspackagessize"
></a>
`packagesSize`
|
[
`Float!`
](
#float
)
| Packages size of the project in bytes. |
|
<a
id=
"projectstatisticspipelineartifactssize"
></a>
`pipelineArtifactsSize`
|
[
`Float`
](
#float
)
| CI Pipeline artifacts size in bytes. |
|
<a
id=
"projectstatisticsrepositorysize"
></a>
`repositorySize`
|
[
`Float!`
](
#float
)
| Repository size of the project in bytes. |
|
<a
id=
"projectstatisticssnippetssize"
></a>
`snippetsSize`
|
[
`Float`
](
#float
)
| Snippets size of the project in bytes. |
|
<a
id=
"projectstatisticsstoragesize"
></a>
`storageSize`
|
[
`Float!`
](
#float
)
| Storage size of the project in bytes. |
...
...
spec/graphql/types/project_statistics_type_spec.rb
View file @
3c85d519
...
...
@@ -6,6 +6,6 @@ RSpec.describe GitlabSchema.types['ProjectStatistics'] 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
,
:snippets_size
,
:uploads_size
)
:wiki_size
,
:snippets_size
,
:
pipeline_artifacts_size
,
:
uploads_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