app/models/katello/pool.rb in katello-3.13.4 vs app/models/katello/pool.rb in katello-3.14.0.rc1

- old
+ new

@@ -82,16 +82,26 @@ :auditable_name => self.name, :audited_changes => {'host_ids' => [old_host_ids, new_host_ids]} ).save! end + # Note - Audit hook added to find records based on column except associations to display audit information + def self.audit_hook_to_find_records(keyname, change, _audit) + if keyname =~ /_ids$/ + case keyname + when 'host_ids' + ::Host.where(:id => change)&.index_by(&:id) + end + end + end + private def default_sort Pool.joins(:subscription).order("subscription.name") end class Jail < ::Safemode::Jail - allow :id, :name, :available, :quantity, :product_id, :contract_number + allow :id, :name, :available, :quantity, :product_id, :contract_number, :type, :account_number, :start_date, :end_date end end end