Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-38720

ContentFacet#find_by_installable_rpms finds applicable rpms, not installable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Repositories
    • None
    • None
    • None
    • None

      One would suppose that, given a host with different numbers of applicable and installable packages, a search for 'has installable_rpms' and 'has applicable_rpms' would have different results. However, the two searches have the same results.

      https://github.com/Katello/katello/blob/8dc78dd030b51729faf5eb81b30278dee2d9ced7/app/models/katello/host/content_facet.rb#L379-L382

      The issue might be that `joins_installable_rpms` searches Katello::ContentFacetApplicableRpm.

      see discussion: https://community.theforeman.org/t/hosts-match-has-upgradable-rpms-but-have-no-upgradable-rpms/44387/7?u=jeremylenz

              Unassigned Unassigned
              rhn-engineering-paji Partha Aji
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: