Commit b042765d authored by Sean McGivern's avatar Sean McGivern

Merge branch '34563-usage-ping-github' into 'master'

Add github imported projects count to usage data

Closes #34563

See merge request !12959
parents a03d21ef 2cc063e5
---
title: Add GitHub imported projects count to usage data
merge_request:
author:
...@@ -39,6 +39,7 @@ module Gitlab ...@@ -39,6 +39,7 @@ module Gitlab
notes: Note.count, notes: Note.count,
pages_domains: PagesDomain.count, pages_domains: PagesDomain.count,
projects: Project.count, projects: Project.count,
projects_imported_from_github: Project.where(import_type: 'github').count,
projects_prometheus_active: PrometheusService.active.count, projects_prometheus_active: PrometheusService.active.count,
protected_branches: ProtectedBranch.count, protected_branches: ProtectedBranch.count,
releases: Release.count, releases: Release.count,
......
...@@ -48,6 +48,7 @@ describe Gitlab::UsageData do ...@@ -48,6 +48,7 @@ describe Gitlab::UsageData do
milestones milestones
notes notes
projects projects
projects_imported_from_github
projects_prometheus_active projects_prometheus_active
pages_domains pages_domains
protected_branches protected_branches
......
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