Project

General

Profile

Actions

Bug #24769

closed

unable to search for packages

Added by Chris Duryee over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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'        

Related issues 1 (0 open1 closed)

Related to Katello - Bug #23644: Relative comparisons of package versions/releases via scoped_search are incorrectClosedPaul Donohue05/18/2018Actions
Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7668 added
Actions #2

Updated by Chris Duryee over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Justin Sherrill over 5 years ago

  • Related to Bug #23644: Relative comparisons of package versions/releases via scoped_search are incorrect added
Actions #4

Updated by Justin Sherrill over 5 years ago

  • Category set to Repositories
  • Target version set to Katello 3.7.1
  • Triaged changed from No to Yes
  • Fixed in Releases Katello 3.9.0 added
Actions

Also available in: Atom PDF