Revision 3ec51c07
Added by Adam Price almost 10 years ago
app/models/katello/glue/elastic_search/package_group.rb | ||
---|---|---|
module Katello
|
||
module Glue::ElasticSearch::PackageGroup
|
||
|
||
module ClassMethods
|
||
def sortable_fields
|
||
%w(name)
|
||
end
|
||
end
|
||
|
||
# TODO: break up into modules
|
||
# rubocop:disable MethodLength
|
||
def self.included(base)
|
||
base.class_eval do
|
||
include Glue::ElasticSearch::BackendIndexedModel
|
||
extend ClassMethods
|
||
|
||
def index_options
|
||
{
|
||
"_type" => Katello::PackageGroup.search_type,
|
Also available in: Unified diff
fixes #6573 - foretello should error when sorting by non-sortable field, BZ 1110431