New Interface for definition/creating InventoryCollection from persister (ManagerRefresh::Inventory::Persister and its provider specific subclasses)
Accessible via _addcollection() method
Intended to replace:
_add_inventorycollection() method
_hasinventory() method
Classes ManagerRefresh::InventoryCollection::Builder and descendants can replace:
ManagerRefresh::InventoryCollectionDefault and subclasses (using add_inventory_collection interface)
ManagerRefresh::Inventory::Core module (and classes including it - using _hasinventory() interface)
IC model class is derived from persister class and IC association value
IC inventory_object_attributes are derived from setters of model_class
IC parent added automatically if missing
(all can be disabled by settings)
New Interface for definition/creating InventoryCollection from persister (ManagerRefresh::Inventory::Persister and its provider specific subclasses) Accessible via _addcollection() method
Intended to replace:
_add_inventorycollection() method _hasinventory() method Classes ManagerRefresh::InventoryCollection::Builder and descendants can replace:
ManagerRefresh::InventoryCollectionDefault and subclasses (using add_inventory_collection interface) ManagerRefresh::Inventory::Core module (and classes including it - using _hasinventory() interface) IC model class is derived from persister class and IC association value IC inventory_object_attributes are derived from setters of model_class IC parent added automatically if missing (all can be disabled by settings)
Documentation: https://github.com/ManageIQ/guides/blob/master/providers/persister/inventory_collections.md https://github.com/ManageIQ/guides/pull/316
Pull requests:
Optimizations:
Final cleanup (depends on all previous PRs)