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
ed4fdc8f
Commit
ed4fdc8f
authored
Oct 30, 2020
by
George Koltsov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add total projects imported usage ping
parent
d99701be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
changelogs/unreleased/georgekoltsov-add-usage-ping-total-projects-imported.yml
.../georgekoltsov-add-usage-ping-total-projects-imported.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
+2
-0
No files found.
changelogs/unreleased/georgekoltsov-add-usage-ping-total-projects-imported.yml
0 → 100644
View file @
ed4fdc8f
---
title
:
Add total projects imported usage ping
merge_request
:
46541
author
:
type
:
added
lib/gitlab/usage_data.rb
View file @
ed4fdc8f
...
...
@@ -589,6 +589,7 @@ module Gitlab
gitlab:
distinct_count
(
::
BulkImport
.
where
(
time_period
,
source_type: :gitlab
),
:user_id
)
},
projects_imported:
{
total:
count
(
Project
.
where
(
time_period
).
where
.
not
(
import_type:
nil
)),
gitlab_project:
projects_imported_count
(
'gitlab_project'
,
time_period
),
gitlab:
projects_imported_count
(
'gitlab'
,
time_period
),
github:
projects_imported_count
(
'github'
,
time_period
),
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
ed4fdc8f
...
...
@@ -221,6 +221,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
gitlab:
2
},
projects_imported:
{
total:
20
,
gitlab_project:
2
,
gitlab:
2
,
github:
2
,
...
...
@@ -244,6 +245,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
gitlab:
1
},
projects_imported:
{
total:
10
,
gitlab_project:
1
,
gitlab:
1
,
github:
1
,
...
...
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