summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-07-19 16:15:50 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-07-19 16:15:50 +0000
commitb042765d2f56e6a7c64c2563bba2f795fde439bf (patch)
treeb796c0edd479b5bf3bd7f7a558e0dceb290845f0 /lib
parenta03d21ef3905e2755bba06684f8f37f706652229 (diff)
parent2cc063e5926337b2d0d168d3de5a865b33d1ec58 (diff)
downloadgitlab-ce-b042765d2f56e6a7c64c2563bba2f795fde439bf.tar.gz
Merge branch '34563-usage-ping-github' into 'master'
Add github imported projects count to usage data Closes #34563 See merge request !12959
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/usage_data.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb
index f19b325a126..dba071d7e47 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -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,