Project

General

Profile

Bug #24769

unable to search for packages

Added by Chris Duryee 11 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
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

Related to Katello - Bug #23644: Relative comparisons of package versions/releases via scoped_search are incorrectClosed2018-05-18

Associated revisions

Revision 9f5f1585 (diff)
Added by Chris Duryee 11 months ago

Fixes #24769 - do not auto-search on `evr`

Previously, `evr` was autosearched upon in the package search page.
This resulted in errors since you could put something like "bear"
which does not make sense for the `evr` field.

Instead, make `evr` searches explicit.

History

#1 Updated by The Foreman Bot 11 months ago

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

#2 Updated by Chris Duryee 11 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Justin Sherrill 11 months ago

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

#4 Updated by Justin Sherrill 11 months ago

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

Also available in: Atom PDF