summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBalasankar "Balu" C <balasankar@gitlab.com>2019-01-31 17:59:26 +0530
committerBalasankar "Balu" C <balasankar@gitlab.com>2019-01-31 18:46:07 +0530
commit232a7a36e2e8e6235a94da767ca96b3277b8590d (patch)
tree5c91b13cf2c037fd21a47b09d581a937039737eb /lib
parent6da156ab4876d946794daa5f48febe88be82fd0e (diff)
downloadgitlab-ce-232a7a36e2e8e6235a94da767ca96b3277b8590d.tar.gz
Add number of repositories to usage ping data
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 083c620267a..6bfcf83f388 100644
--- a/lib/gitlab/usage_data.rb
+++ b/lib/gitlab/usage_data.rb
@@ -81,6 +81,7 @@ module Gitlab
pages_domains: count(PagesDomain),
projects: count(Project),
projects_imported_from_github: count(Project.where(import_type: 'github')),
+ projects_with_repositories_enabled: count(ProjectFeature.where('repository_access_level > ?', ProjectFeature::DISABLED)),
protected_branches: count(ProtectedBranch),
releases: count(Release),
remote_mirrors: count(RemoteMirror),