diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-11-15 18:10:10 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2019-02-27 22:19:49 +0300 |
commit | 2e05292562e71deeff9b76bd3c696eca2a65a491 (patch) | |
tree | 3cceb216c54d7c55376b53421d273147d03b06ba /app/serializers | |
parent | 315361e025f5e490631d611b0f43b1814d1b0edc (diff) |
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/serializers')
-rw-r--r-- | app/serializers/acts_as_taggable_on/tag_entity.rb | 6 | ||||
-rw-r--r-- | app/serializers/acts_as_taggable_on/tag_serializer.rb | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/app/serializers/acts_as_taggable_on/tag_entity.rb b/app/serializers/acts_as_taggable_on/tag_entity.rb new file mode 100644 index 00000000000..d4e4b69f8fa --- /dev/null +++ b/app/serializers/acts_as_taggable_on/tag_entity.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class ActsAsTaggableOn::TagEntity < Grape::Entity + expose :id + expose :name +end diff --git a/app/serializers/acts_as_taggable_on/tag_serializer.rb b/app/serializers/acts_as_taggable_on/tag_serializer.rb new file mode 100644 index 00000000000..87f53606aa1 --- /dev/null +++ b/app/serializers/acts_as_taggable_on/tag_serializer.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +class ActsAsTaggableOn::TagSerializer < BaseSerializer + entity ActsAsTaggableOn::TagEntity +end |