Commit 6ff0aaff authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'georgekoltsov/add-usage-ping-total-projects-imported' into 'master'

Add total projects imported usage ping

See merge request gitlab-org/gitlab!46541
parents 931e0b78 ed4fdc8f
---
title: Add total projects imported usage ping
merge_request: 46541
author:
type: added
......@@ -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),
......
......@@ -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,
......
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