diff options
author | micael.bergeron <micael.bergeron@solutionstlm.com> | 2017-09-12 22:49:01 +0300 |
---|---|---|
committer | micael.bergeron <micael.bergeron@solutionstlm.com> | 2017-09-12 22:49:01 +0300 |
commit | b376e5c80e3dc6f30dfcc06f6a63209381414f89 (patch) | |
tree | 5c329738b841e887ff9489d9021313adf983e65e /app/controllers/boards/issues_controller.rb | |
parent | 53e632cbca5c9a304079721c26c140628c09e81c (diff) |
fix another N+1 query for label priorities
added a QueryRecorder for IssuesController#index.json
Diffstat (limited to 'app/controllers/boards/issues_controller.rb')
-rw-r--r-- | app/controllers/boards/issues_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/boards/issues_controller.rb b/app/controllers/boards/issues_controller.rb index 1c33f9a69d8..0d74078645a 100644 --- a/app/controllers/boards/issues_controller.rb +++ b/app/controllers/boards/issues_controller.rb @@ -12,10 +12,10 @@ module Boards issues = issues.page(params[:page]).per(params[:per] || 20) make_sure_position_is_set(issues) issues = issues.preload(:project, - :labels, :milestone, :assignees, - :notes => [:award_emoji, :author] + labels: [:priorities], + notes: [:award_emoji, :author] ) render json: { |