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

Add github imported projects count to usage data

Closes #34563

See merge request !12959
This commit is contained in:
Sean McGivern 2017-07-19 16:15:50 +00:00
commit b042765d2f
3 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
title: Add GitHub imported projects count to usage data
merge_request:
author:

View File

@ -39,6 +39,7 @@ module Gitlab
notes: Note.count,
pages_domains: PagesDomain.count,
projects: Project.count,
projects_imported_from_github: Project.where(import_type: 'github').count,
projects_prometheus_active: PrometheusService.active.count,
protected_branches: ProtectedBranch.count,
releases: Release.count,

View File

@ -48,6 +48,7 @@ describe Gitlab::UsageData do
milestones
notes
projects
projects_imported_from_github
projects_prometheus_active
pages_domains
protected_branches