ManageIQ / inventory_refresh

Apache License 2.0
1 stars 23 forks source link

Remove Recursive save_collection strategy #20

Closed agrare closed 6 years ago

agrare commented 6 years ago

The recursive save_collection strategy isn't used and can be removed.

Also for simplicity this moves InventoryRefresh::SaveCollection* under InventoryRefresh::SaveInventory since I found it confusing that save_inventory really didn't do anything and save_collection did all the work.

miq-bot commented 6 years ago

Checked commits https://github.com/agrare/inventory_refresh/compare/46f11993f607fbff7c80abdd857f8dd448c641e5~...a8eafa79338d1f5049d2abf5bda0bbfac7851c3a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 16 files checked, 211 offenses detected

lib/inventory_refresh/save_inventory/saver/base.rb

lib/inventory_refresh/save_inventory/saver/concurrent_safe.rb

lib/inventory_refresh/save_inventory/saver/concurrent_safe_batch.rb

lib/inventory_refresh/save_inventory/saver/sql_helper.rb

lib/inventory_refresh/save_inventory/saver/sql_helper_upsert.rb

spec/save_inventory/acyclic_graph_of_inventory_collections_spec.rb

spec/save_inventory/graph_of_inventory_collections_spec.rb

spec/save_inventory/graph_of_inventory_collections_targeted_refresh_spec.rb

spec/save_inventory/saver_strategies_spec.rb

spec/save_inventory/single_inventory_collection_spec.rb

spec/save_inventory/strategies_and_references_spec.rb

miq-bot commented 6 years ago

...continued

Ladas commented 6 years ago

hm @slemrmartin is rewriting the specs under /save_inventory, so this will conflict a lot, lets wait till that is done? :-)

slemrmartin commented 6 years ago

PR @Ladas mentioned > https://github.com/ManageIQ/inventory_refresh/pull/19

miq-bot commented 6 years ago

This pull request is not mergeable. Please rebase and repush.

agrare commented 6 years ago

Closing in favor of https://github.com/ManageIQ/inventory_refresh/pull/23