diff options
author | manojmj <mmj@gitlab.com> | 2019-08-30 19:03:57 +0530 |
---|---|---|
committer | manojmj <mmj@gitlab.com> | 2019-08-31 01:01:18 +0530 |
commit | 9af1cd11d65b5129f780cd9f1da6b38ce58efe78 (patch) | |
tree | 4b0e52e8c5fdb097c9bfa04dda1edc5057f92d1c /lib/api | |
parent | 69a4490793d29f4bff62029fea5e92cd18ec387d (diff) | |
download | gitlab-ce-test-51123.tar.gz |
Do not add Project, User, Group counts in APItest-51123
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 12 | ||||
-rw-r--r-- | lib/api/statistics.rb | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index e1826a2dd93..a08ff9d3be5 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -1199,18 +1199,6 @@ module API approximate_count_with_delimiters(counts, ::Milestone) end - expose :users do |counts| - approximate_count_with_delimiters(counts, ::User) - end - - expose :projects do |counts| - approximate_count_with_delimiters(counts, ::Project) - end - - expose :groups do |counts| - approximate_count_with_delimiters(counts, ::Group) - end - expose :active_users do |_| number_with_delimiter(::User.active.count) end diff --git a/lib/api/statistics.rb b/lib/api/statistics.rb index d2dce34dfa5..032807cb2ac 100644 --- a/lib/api/statistics.rb +++ b/lib/api/statistics.rb @@ -4,7 +4,7 @@ module API class Statistics < Grape::API before { authenticated_as_admin! } - COUNTED_ITEMS = [Project, User, Group, ForkNetworkMember, ForkNetwork, Issue, + COUNTED_ITEMS = [ForkNetworkMember, ForkNetwork, Issue, MergeRequest, Note, Snippet, Key, Milestone].freeze desc 'Get the current application statistics' do |