Merge branch 'mc/bug/nplusone-pipelines-show' into 'master'

Preload tags when loading Ci::Pipeline

Closes #60925

See merge request gitlab-org/gitlab-ce!32149
This commit is contained in:
Stan Hu 2019-08-24 12:26:38 +00:00
commit 8112fb3754
1 changed files with 1 additions and 1 deletions

View File

@ -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