diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-06-05 16:51:31 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-06-05 16:51:31 +0300 |
commit | da246582db2577107ffdfbcf5741daccc8e029c0 (patch) | |
tree | 8b30561289ab8a11576bf5e134d70f3418913f73 /app/models/project.rb | |
parent | 809a50fcbf5ecfbf5ec02671f1ca2710a96f58d3 (diff) | |
parent | 9921830267ccef2321e9a57383b28daafd34fa78 (diff) |
Merge branch 'master' into 'backstage/gb/use-persisted-stages-to-improve-pipelines-table'
# Conflicts:
# db/schema.rb
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index a4df07b074a..b91a30400b7 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1656,12 +1656,6 @@ class Project < ActiveRecord::Base import_state.update_column(:jid, nil) end - def running_or_pending_build_count(force: false) - Rails.cache.fetch(['projects', id, 'running_or_pending_build_count'], force: force) do - builds.running_or_pending.count(:all) - end - end - # Lazy loading of the `pipeline_status` attribute def pipeline_status @pipeline_status ||= Gitlab::Cache::Ci::ProjectPipelineStatus.load_for_project(self) |