From ebf4620773459e886b7e1be748f96d768608337e Mon Sep 17 00:00:00 2001 From: Ladislav Smola Date: Sat, 11 Aug 2018 14:05:40 +0200 Subject: [PATCH] Switch to proper targeted refresh Switch to proper targeted refresh --- .../inventory/persister/target_collection.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/models/manageiq/providers/openshift/inventory/persister/target_collection.rb b/app/models/manageiq/providers/openshift/inventory/persister/target_collection.rb index b9d1e3e5..08acf3b7 100644 --- a/app/models/manageiq/providers/openshift/inventory/persister/target_collection.rb +++ b/app/models/manageiq/providers/openshift/inventory/persister/target_collection.rb @@ -1,15 +1,9 @@ class ManageIQ::Providers::Openshift::Inventory::Persister::TargetCollection < ManageIQ::Providers::Openshift::Inventory::Persister::ContainerManager def targeted? - false # TODO(lsmola) get ready for true, which means a proper targeted refresh. That will require more effort. + true end - def shared_options - { - :targeted => targeted?, - :complete => false, # For now, we want to a only create and update elements using watches data, delete events could - # probably set finished_at and deleted_on dates, as an update based disconnect_inv. - :strategy => :local_db_find_references, # By default no IC will be saved - :parent => manager.presence - } + def strategy + :local_db_find_missing_references end end