Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-06-05 16:51:31 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-06-05 16:51:31 +0300
commitda246582db2577107ffdfbcf5741daccc8e029c0 (patch)
tree8b30561289ab8a11576bf5e134d70f3418913f73 /app/models/project.rb
parent809a50fcbf5ecfbf5ec02671f1ca2710a96f58d3 (diff)
parent9921830267ccef2321e9a57383b28daafd34fa78 (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.rb6
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)