summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-11-15 16:10:10 +0100
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2019-02-27 20:19:49 +0100
commit2e05292562e71deeff9b76bd3c696eca2a65a491 (patch)
tree3cceb216c54d7c55376b53421d273147d03b06ba /app/controllers/admin
parent315361e025f5e490631d611b0f43b1814d1b0edc (diff)
downloadgitlab-ce-2e05292562e71deeff9b76bd3c696eca2a65a491.tar.gz
use lazy ajax filter dropdown for runner tags
the potential number of available runner tags is too large to load it statically to a dropdown. we use the same lazy loaded dropdown as is used for the users dropdown already.
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/runners_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/admin/runners_controller.rb b/app/controllers/admin/runners_controller.rb
index 78edd325f1d..dd6b3c98496 100644
--- a/app/controllers/admin/runners_controller.rb
+++ b/app/controllers/admin/runners_controller.rb
@@ -49,7 +49,9 @@ class Admin::RunnersController < Admin::ApplicationController
end
def tag_list
- render json: AutocompleteTagsService.new(Ci::Runner).run
+ tags = Autocomplete::ActsAsTaggableOn::TagsFinder.new(taggable_type: Ci::Runner, params: params).execute
+
+ render json: ActsAsTaggableOn::TagSerializer.new.represent(tags)
end
private