Closed Ladas closed 5 years ago
cc @slemrmartin
lib/inventory_refresh/inventory_collection/builder.rb
lib/inventory_refresh/inventory_object.rb
if
statement spanning multiple lines.if
statement spanning multiple lines.lib/inventory_refresh/save_collection/sweeper.rb
scope.blank?
instead of scope.nil? || scope.empty?
.spec/persister/sweep_inactive_records_spec.rb
)
the same as the start of the line where (
is.InventoryRefresh::SaveInventory.sweep_inactive_records( persister.manager, persister.inventory_collections, persister.sweep_scope, refresh_state(2, time, persister.sweep_scope) )
out of the conditional.InventoryRefresh::SaveInventory.sweep_inactive_records( persister.manager, persister.inventory_collections, persister.sweep_scope, refresh_state(2, time, persister.sweep_scope) )
out of the conditional.
Subcollections as concept are being ditched, everything will be flat now.
If we want to archive e.g. container_groups with their 'subcollections' containers, after we save them all we'll send scope:
If we want to archive it targeted way, so we've saved container_groups X and Y and all their containers we'll send scope:
The scope provided can contain any attributes on IC.
Depends on:
last_seen_on
to every DB table involved in refresh https://github.com/ManageIQ/topological_inventory-core/pull/126