Commit 0fd3a912 authored by Jose Vargas's avatar Jose Vargas Committed by Adrien Kohlbecker

Addres N+1 queries

parent 226a8605
......@@ -110,7 +110,7 @@ module Projects
end
def define_runners_variables
@project_runners = @project.runners.ordered.page(params[:page]).per(NUMBER_OF_RUNNERS_PER_PAGE)
@project_runners = @project.runners.ordered.page(params[:page]).per(NUMBER_OF_RUNNERS_PER_PAGE).with_tags
@assignable_runners = current_user
.ci_owned_runners
......
......@@ -37,8 +37,8 @@
- if runner.description.present?
%p.runner-description
= runner.description
- if runner.tag_list.present?
- if runner.tags.present?
%p
- runner.tag_list.sort.each do |tag|
- runner.tags.map(&:name).sort.each do |tag|
%span.badge.badge-primary
= tag
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment