diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-30 14:19:07 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-12-03 12:04:49 +0100 |
commit | 8f01e67980d4ab8a7879800156cdc1dee07a4e8b (patch) | |
tree | e2b15852db7663163e7f88d6aa6a44498379b167 /app/models/project_statistics.rb | |
parent | 2045a771bfa5a1a32ff04f5bc23d58f1170b6359 (diff) | |
download | gitlab-ce-8f01e67980d4ab8a7879800156cdc1dee07a4e8b.tar.gz |
Revert "Rename `job_archive|metadata` to `artifacts_archive|metadata`"
This reverts commit 714082e65304ae2ec5c5400c59a68ab63e724aa9.
Diffstat (limited to 'app/models/project_statistics.rb')
-rw-r--r-- | app/models/project_statistics.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/models/project_statistics.rb b/app/models/project_statistics.rb index b3d4c82583c..17b9d2cf7b4 100644 --- a/app/models/project_statistics.rb +++ b/app/models/project_statistics.rb @@ -35,9 +35,6 @@ class ProjectStatistics < ActiveRecord::Base end def update_build_artifacts_size - # REMARK: - # We perform dual calculation as we run SQL query: sum does not instantiate AR model. - # The Ci::Build#artifacts_size returns sum of ci_builds.artifacts_size and ci_job_artifacts.file_size self.build_artifacts_size = project.builds.sum(:artifacts_size) + Ci::JobArtifact.artifacts_size_for(self) |