Skip to content

Commit

Permalink
Fixes #35290 - Katello rpm search via nvra also (Katello#10214)
Browse files Browse the repository at this point in the history
Add scoped_search on nvra. This helps user experience when filename does
not follow NVRA pattern.

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
(cherry picked from commit d4188e5)
  • Loading branch information
pmoravec authored and sjha4 committed Aug 29, 2022
1 parent aa9a29f commit 58eaa51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/katello/rpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Rpm < Katello::Model
scoped_search :on => :evr, :ext_method => :scoped_search_evr, :only_explicit => true
scoped_search :on => :filename, :complete_value => true
scoped_search :on => :sourcerpm, :complete_value => true
scoped_search :on => :nvra, :complete_value => true
scoped_search :on => :modular, :complete_value => true, :only_explicit => true
scoped_search :on => :checksum

Expand Down

0 comments on commit 58eaa51

Please sign in to comment.