Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9d3299f6
Commit
9d3299f6
authored
Aug 20, 2020
by
Giorgenes Gelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds package count to usage data
parent
787ad7eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/205578-add-package-count-to-usage-data.yml
...ogs/unreleased/205578-add-package-count-to-usage-data.yml
+5
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-0
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+1
-0
No files found.
changelogs/unreleased/205578-add-package-count-to-usage-data.yml
0 → 100644
View file @
9d3299f6
---
title
:
Adds package count to usage data
merge_request
:
40039
author
:
type
:
added
lib/gitlab/usage_data.rb
View file @
9d3299f6
...
...
@@ -130,6 +130,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
),
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
9d3299f6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment