Revision c92d3311
Added by Adam Price almost 10 years ago
app/models/katello/glue/elastic_search/environment.rb | ||
---|---|---|
module Katello
|
||
module Glue::ElasticSearch::Environment
|
||
|
||
module ClassMethods
|
||
def sortable_fields
|
||
%w(name library)
|
||
end
|
||
end
|
||
|
||
def self.included(base)
|
||
base.class_eval do
|
||
include Ext::IndexedModel
|
||
extend ClassMethods
|
||
after_save :update_related_index
|
||
after_destroy :delete_related_index
|
||
|
Also available in: Unified diff
Revert "fixes #6573 - foretello should error when sorting by non-sortable field, BZ 1110431"
This reverts commit 3ec51c074a3decb6656f85195d98b39f57ccf430.
will re-introduce this fix at a later date when we have some testing
around sorting