Skip to content

Commit

Permalink
Merge pull request ManageIQ#104 from Ladas/allow_proper_targeted_refresh
Browse files Browse the repository at this point in the history
Switch to proper targeted refresh
  • Loading branch information
agrare committed Aug 14, 2018
2 parents 16a47af + ebf4620 commit 3788d12
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3788d12

Please sign in to comment.