Expose wiki_size on GraphQL API
This commit is contained in:
parent
6eee9335c4
commit
4e251d01de
3 changed files with 8 additions and 1 deletions
|
@ -11,5 +11,6 @@ module Types
|
|||
field :lfs_objects_size, GraphQL::INT_TYPE, null: false
|
||||
field :build_artifacts_size, GraphQL::INT_TYPE, null: false
|
||||
field :packages_size, GraphQL::INT_TYPE, null: false
|
||||
field :wiki_size, GraphQL::INT_TYPE, null: true
|
||||
end
|
||||
end
|
||||
|
|
5
changelogs/unreleased/ac-graphql-wikisize.yml
Normal file
5
changelogs/unreleased/ac-graphql-wikisize.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Expose wiki_size on GraphQL API
|
||||
merge_request: 29123
|
||||
author:
|
||||
type: added
|
|
@ -5,6 +5,7 @@ require 'spec_helper'
|
|||
describe GitlabSchema.types['ProjectStatistics'] do
|
||||
it "has all the required fields" do
|
||||
is_expected.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)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue