Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/ci/runners_finder.rb')
-rw-r--r--app/finders/ci/runners_finder.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/finders/ci/runners_finder.rb b/app/finders/ci/runners_finder.rb
index 7ad51361efd..d34b3202433 100644
--- a/app/finders/ci/runners_finder.rb
+++ b/app/finders/ci/runners_finder.rb
@@ -19,8 +19,9 @@ module Ci
filter_by_runner_type!
filter_by_tag_list!
sort!
+ request_tag_list!
- @runners.with_tags
+ @runners
rescue Gitlab::Access::AccessDeniedError
Ci::Runner.none
@@ -73,6 +74,10 @@ module Ci
@runners = @runners.order_by(sort_key)
end
+ def request_tag_list!
+ @runners = @runners.with_tags if !@params[:preload].present? || @params.dig(:preload, :tag_name)
+ end
+
def filter_by!(scope_name, available_scopes)
scope = @params[scope_name]