Expose wiki_size on GraphQL API

This commit is contained in:
Alessio Caiazza 2019-06-04 12:11:41 +00:00 committed by Nick Thomas
parent 6eee9335c4
commit 4e251d01de
3 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1,5 @@
---
title: Expose wiki_size on GraphQL API
merge_request: 29123
author:
type: added

View file

@ -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