Commit d594d490 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'fj-223706-add-snippets-size-to-project-statistics-type' into 'master'

Add snippets_size to ProjectStatistics GraphQL type

See merge request gitlab-org/gitlab!35319
parents 20005cdf 3b18bf50
...@@ -21,5 +21,7 @@ module Types ...@@ -21,5 +21,7 @@ module Types
description: 'Packages size of the project' description: 'Packages size of the project'
field :wiki_size, GraphQL::FLOAT_TYPE, null: true, field :wiki_size, GraphQL::FLOAT_TYPE, null: true,
description: 'Wiki size of the project' description: 'Wiki size of the project'
field :snippets_size, GraphQL::FLOAT_TYPE, null: true,
description: 'Snippets size of the project'
end end
end end
---
title: Add snippets_size to ProjectStatistics GraphQL type
merge_request: 35319
author:
type: changed
...@@ -10134,6 +10134,11 @@ type ProjectStatistics { ...@@ -10134,6 +10134,11 @@ type ProjectStatistics {
""" """
repositorySize: Float! repositorySize: Float!
"""
Snippets size of the project
"""
snippetsSize: Float
""" """
Storage size of the project Storage size of the project
""" """
......
...@@ -29952,6 +29952,20 @@ ...@@ -29952,6 +29952,20 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "snippetsSize",
"description": "Snippets size of the project",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "storageSize", "name": "storageSize",
"description": "Storage size of the project", "description": "Storage size of the project",
...@@ -1478,6 +1478,7 @@ Represents a Project Member ...@@ -1478,6 +1478,7 @@ Represents a Project Member
| `lfsObjectsSize` | Float! | Large File Storage (LFS) object size of the project | | `lfsObjectsSize` | Float! | Large File Storage (LFS) object size of the project |
| `packagesSize` | Float! | Packages size of the project | | `packagesSize` | Float! | Packages size of the project |
| `repositorySize` | Float! | Repository 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 | | `storageSize` | Float! | Storage size of the project |
| `wikiSize` | Float | Wiki size of the project | | `wikiSize` | Float | Wiki size of the project |
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe GitlabSchema.types['ProjectStatistics'] do 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, expect(described_class).to have_graphql_fields(:storage_size, :repository_size, :lfs_objects_size,
:build_artifacts_size, :packages_size, :commit_count, :build_artifacts_size, :packages_size, :commit_count,
:wiki_size) :wiki_size, :snippets_size)
end end
end end
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