diff options
author | Sean McGivern <sean@gitlab.com> | 2018-11-27 12:57:51 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-11-27 12:57:51 +0000 |
commit | 913740de00c6a768c145608fd821911ceb370326 (patch) | |
tree | 9bf45143506f4ead4dc161ed423c3feae97701af /lib | |
parent | 92bfb3c5be8ce9b034421040cadc23fe067e5c4b (diff) | |
parent | fe2e6c6dc046748f8760bfbb3c74185bdbf1359b (diff) | |
download | gitlab-ce-913740de00c6a768c145608fd821911ceb370326.tar.gz |
Merge branch '53778-remove-site-statistics' into 'master'
Remove Site Statistic
Closes #53778
See merge request gitlab-org/gitlab-ce!23314
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/site_statistics.rake | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/tasks/gitlab/site_statistics.rake b/lib/tasks/gitlab/site_statistics.rake deleted file mode 100644 index d97f11b2ed5..00000000000 --- a/lib/tasks/gitlab/site_statistics.rake +++ /dev/null @@ -1,15 +0,0 @@ -namespace :gitlab do - desc "GitLab | Refresh Site Statistics counters" - task refresh_site_statistics: :environment do - puts 'Updating Site Statistics counters: ' - - print '* Repositories... ' - SiteStatistic.transaction do - # see https://gitlab.com/gitlab-org/gitlab-ce/issues/48967 - ActiveRecord::Base.connection.execute('SET LOCAL statement_timeout TO 0') if Gitlab::Database.postgresql? - SiteStatistic.update_all('repositories_count = (SELECT COUNT(*) FROM projects)') - end - puts 'OK!'.color(:green) - puts - end -end |