app/controllers/katello/api/v2/debs_controller.rb in katello-4.11.1 vs app/controllers/katello/api/v2/debs_controller.rb in katello-4.12.0.rc1
- old
+ new
@@ -86,12 +86,16 @@
end
def custom_index_relation(collection)
applicable = ::Foreman::Cast.to_bool(params[:packages_restrict_applicable]) || params[:host_id]
upgradable = ::Foreman::Cast.to_bool(params[:packages_restrict_upgradable])
+ not_installed = ::Foreman::Cast.to_bool(params[:packages_restrict_not_installed])
if upgradable
collection = collection.installable_for_hosts(@hosts)
+ elsif not_installed && params[:host_id]
+ host = @hosts.first
+ collection = Katello::Deb.apt_installable_for_host(host)
elsif applicable
collection = collection.applicable_to_hosts(@hosts)
end
collection