Revision 82b4749e
Added by Marek Hulán about 10 years ago
app/models/concerns/hostext/search.rb | ||
---|---|---|
scoped_search :in => :fact_values, :on => :value, :in_key=> :fact_names, :on_key=> :name, :rename => :facts, :complete_value => true, :only_explicit => true
|
||
scoped_search :in => :search_parameters, :on => :value, :on_key=> :name, :complete_value => true, :rename => :params, :ext_method => :search_by_params, :only_explicit => true
|
||
|
||
scoped_search :in => :location, :on => :title, :rename => :location, :complete_value => true if SETTINGS[:locations_enabled]
|
||
scoped_search :in => :organization, :on => :title, :rename => :organization, :complete_value => true if SETTINGS[:organizations_enabled]
|
||
if SETTINGS[:locations_enabled]
|
||
scoped_search :in => :location, :on => :title, :rename => :location, :complete_value => true
|
||
scoped_search :in => :location, :on => :id, :rename => :location_id, :complete_value => true
|
||
end
|
||
if SETTINGS[:organizations_enabled]
|
||
scoped_search :in => :organization, :on => :title, :rename => :organization, :complete_value => true
|
||
scoped_search :in => :organization, :on => :id, :rename => :organization_id, :complete_value => true
|
||
end
|
||
scoped_search :in => :config_groups, :on => :name, :complete_value => true, :rename => :config_group, :only_explicit => true, :operators => ['= ', '~ '], :ext_method => :search_by_config_group
|
||
|
||
if SETTINGS[:unattended]
|
Also available in: Unified diff
Fixes #5664 - Host filters can use taxonomies
Also disables taxonomy filters on resources that do not support them.