Commit 0d66701d authored by Nick Thomas's avatar Nick Thomas

Merge branch 'ac-graphql-wikisize' into 'master'

Expose wiki_size on GraphQL API

See merge request gitlab-org/gitlab-ce!29123
parents 6eee9335 4e251d01
...@@ -11,5 +11,6 @@ module Types ...@@ -11,5 +11,6 @@ module Types
field :lfs_objects_size, GraphQL::INT_TYPE, null: false field :lfs_objects_size, GraphQL::INT_TYPE, null: false
field :build_artifacts_size, GraphQL::INT_TYPE, null: false field :build_artifacts_size, GraphQL::INT_TYPE, null: false
field :packages_size, GraphQL::INT_TYPE, null: false field :packages_size, GraphQL::INT_TYPE, null: false
field :wiki_size, GraphQL::INT_TYPE, null: true
end end
end end
---
title: Expose wiki_size on GraphQL API
merge_request: 29123
author:
type: added
...@@ -5,6 +5,7 @@ require 'spec_helper' ...@@ -5,6 +5,7 @@ require 'spec_helper'
describe GitlabSchema.types['ProjectStatistics'] do describe GitlabSchema.types['ProjectStatistics'] do
it "has all the required fields" do it "has all the required fields" do
is_expected.to have_graphql_fields(:storage_size, :repository_size, :lfs_objects_size, 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
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