-
Notifications
You must be signed in to change notification settings - Fork 900
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
[WIP] Use SDK4 for refreshing #13742
Conversation
cc @durandom would love to hear your thoughts. |
Thats an interesting approach. Then you have parsing strategies. Thats a lot of guessing - but its also quite some code :) So, I think we are solving similar requirements with the current graph refresh. Please have a look at #13728 which has a nice description of the code layout. It will change slightly with #13907 - but the concept stays the same. Although the API version switches, that you require, are not baked into this, it would be easy to extend. You can apply your strategy pattern to the parsers in the graph refresh. So my advice would be to collaborate on using the platform approach above - work out what shortcomings we have, that you need. Also you might look at the ansible refresh which is a small straight forward implementation: |
6de9a85
to
8a037cf
Compare
This is a preparation for using the new ovirt-engine-sdk for providers that support v4 of the api, while using the old Ovirt gem for those that do not.
8a037cf
to
90f83fc
Compare
90f83fc
to
d972728
Compare
Some comments on commits borod108/manageiq@64a0518~...d972728 spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_1_spec.rb
|
Checked commits borod108/manageiq@64a0518~...d972728 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/models/manageiq/providers/redhat/infra_manager/refresh/parse/strategies/vm_inventory.rb
app/models/manageiq/providers/redhat/infra_manager/refresh/strategies/api4.rb
spec/models/manageiq/providers/redhat/infra_manager/refresh/refresher_4_1_spec.rb
|
This pull request is not mergeable. Please rebase and repush. |
this is WIP only implamented for full refresh and still a lot of refactoring to do.