-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graph refresh #236
Graph refresh #236
Conversation
7e1d4e5
to
a6ae19d
Compare
cc @agrare @Ladas @douglasgabriel There is one problem with inventories |
@slemrmartin yeah this is being added by ManageIQ/manageiq-schema#285 |
cc @EsdrasVP |
@slemrmartin As I commented on ManageIQ/manageiq-schema#285 (comment) there are cases in which the |
@EsdrasVP okay, I changed it in ManageIQ/manageiq#18063, that unique value is storage id + serial number, which can be nil. Also there are more changes in #235, which must be integrated to this code, right? There are some disk "total space" and multi-enclosures, right? |
@slemrmartin Yeah, if what I did on #235 it's approved and we use
Yes, although the implementation of |
@EsdrasVP all parser components are copied to new location here, because there are too many changes to use the same code for current and graph refresh. |
Old-Graph refresh "merge" commit a6645ef
ff4e018
to
8880c16
Compare
|
Integration to graph refresh from PR ManageIQ#233
#233 integrated |
Checked commits slemrmartin/manageiq-providers-lenovo@9fc1ab6~...d47706f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/manageiq/providers/lenovo/inventory/collector.rb
app/models/manageiq/providers/lenovo/physical_infra_manager/hardware.rb
|
@slemrmartin I will close and reopen only for the travis to perform the specs again. |
@CharlleDaniel this PR depends on ManageIQ/manageiq#18063, so tests are failing now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @slemrmartin 👍
Graph refresh collects inventory to
InventoryCollection
+InventoryObject
objects and saves byPersister
.Avoids using nested hashes when collecting data.
Switching Refresher as ManagerRefresh subclass, added collector/parser/persister classes.
Parser components are derived as much as possible from old style refresh.