Commit 128b7689 authored by Fabio Pitino's avatar Fabio Pitino

Merge branch '205578-add-package-count-to-usage-data' into 'master'

Adds package count to usage data

See merge request gitlab-org/gitlab!40039
parents da980f4b 9d3299f6
---
title: Adds package count to usage data
merge_request: 40039
author:
type: added
......@@ -131,6 +131,7 @@ module Gitlab
milestone_lists: count(List.milestone),
milestones: count(Milestone),
projects_with_packages: distinct_count(::Packages::Package, :project_id),
packages: count(::Packages::Package),
pages_domains: count(PagesDomain),
pool_repositories: count(PoolRepository),
projects: count(Project),
......
......@@ -417,6 +417,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
expect(count_data[:project_snippets]).to eq(4)
expect(count_data[:projects_with_packages]).to eq(2)
expect(count_data[:packages]).to eq(3)
end
it 'gathers object store usage correctly' do
......
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