summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2019-08-23 14:49:52 +0200
committerMatija Čupić <matteeyah@gmail.com>2019-08-23 14:49:52 +0200
commit21024065c586e64e802e838c1efe1cb21a3c3a37 (patch)
treeb43e6db7216297fd752d1a19f37eca8cc62f054f
parent91b77a162eb2d1eeb4c08ceed11898c698ffb2db (diff)
downloadgitlab-ce-mc/bug/nplusone-pipelines-show.tar.gz
Preload tags when loading Ci::Pipelinemc/bug/nplusone-pipelines-show
-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 e6e3a440925..499d4918899 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -180,7 +180,7 @@ class Projects::PipelinesController < Projects::ApplicationController
else
project
.all_pipelines
- .includes(user: :status)
+ .includes(builds: :tags, user: :status)
.find_by!(id: params[:id])
.present(current_user: current_user)
end