Description of problem: In the System Templates UI, when a user selects a package (e.g. [product-X] => Packages => [package-Y]) to add to a template, the UI will send an 'auto_complete_locker' request to Katello to retrieve/validate the package. In the current implementation, the UI packages_controller will use the pulp API (Pulp::Package.name_search) to retrieve the details; however, for efficiency, we'd like to use elastic search to perform this (e.g. Glue::Pulp::Package.name_search). Unfortunately, the API using elastic search does not return the correct result. In many cases, the package is not found which will result in the behavior described by bug 773454. After initial investigation, it appears that this may be related to the indexing of packages not occurring properly. The indexing occurs after a repo sync completes (app/models/repository.rb - index_packages). For example, - sync a repo (e.g. rhel-6) - from rails console, query all packages: irb(main):025:0> s = Tire.search('katello_package') {query {all}} irb(main):024:0> s.results.length => 10 Given the above search, we should see several thousand packages returned. Version-Release number of selected component (if applicable): git master How reproducible: always
commit - e4f68e7f04bad063476be2d27db0912e59f73184 Updated the indexing of packages to support an ngram filter. This allows us to support 'auto-complete' for package names as well as queries of the complete package name. Updated the system-templates UI to use elastic search.
mass ON_QA move
QA Verified.
getting rid of 6.0.0 version since that doesn't exist