Actions
Bug #24769
closedunable to search for packages
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
If you attempt to do a package search from the packages page, no results will be displayed. Instead, you'll get this stack trace:
ActiveModel::UnknownAttributeError: unknown attribute 'evr' for Class. | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/definition.rb:116:in `column' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/definition.rb:123:in `type' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/definition.rb:254:in `block in default_fields_for' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/definition.rb:254:in `select' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/definition.rb:254:in `default_fields_for' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/query_builder.rb:437:in `to_sql' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/query_builder.rb:54:in `build_find_params' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/query_builder.rb:22:in `build_query' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/auto_complete_builder.rb:87:in `is_query_valid' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/auto_complete_builder.rb:37:in `build_autocomplete_options' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/auto_complete_builder.rb:21:in `auto_complete' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/scoped_search-4.1.3/lib/scoped_search/definition.rb:319:in `complete_for' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:66:in `block in complete_for' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/activerecord-5.1.6/lib/active_record/relation.rb:336:in `scoping' | /home/vagrant/.rvm/gems/ruby-2.4.4/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:66:in `complete_for' | /home/vagrant/katello/app/controllers/katello/concerns/filtered_auto_complete_search.rb:11:in `auto_complete_search'
Actions