diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-08-23 14:49:52 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-08-23 14:49:52 +0200 |
commit | 21024065c586e64e802e838c1efe1cb21a3c3a37 (patch) | |
tree | b43e6db7216297fd752d1a19f37eca8cc62f054f | |
parent | 91b77a162eb2d1eeb4c08ceed11898c698ffb2db (diff) | |
download | gitlab-ce-21024065c586e64e802e838c1efe1cb21a3c3a37.tar.gz |
Preload tags when loading Ci::Pipelinemc/bug/nplusone-pipelines-show
-rw-r--r-- | app/controllers/projects/pipelines_controller.rb | 2 |
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 |