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 <grzesiek.bizon@gmail.com>2018-05-22 13:30:45 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-22 13:30:45 +0300
commit6c63f96e0a26fa046fb0cc4664240e37db8b37d8 (patch)
tree60665118a4d454b2d68c4c15a6f76912b3763c4f /app/controllers/projects/pipelines_controller.rb
parent9520d2ff278f12cf2e01a755b1ea12213fd22edb (diff)
Preload number of warnings in every stage in a pipeline
This makes it possible to avoid N+1 queries when loading pipelines table.
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r--app/controllers/projects/pipelines_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 886431df7f7..172642a1225 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -24,7 +24,7 @@ class Projects::PipelinesController < Projects::ApplicationController
@finished_count = limited_pipelines_count(project, 'finished')
@pipelines_count = limited_pipelines_count(project)
- Gitlab::Ci::Pipeline::Preloader.preload(@project, @pipelines)
+ Gitlab::Ci::Pipeline::Preloader.preload(@pipelines)
respond_to do |format|
format.html