Commit ed4fdc8f authored by George Koltsov's avatar George Koltsov

Add total projects imported usage ping

parent d99701be
---
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