-
Notifications
You must be signed in to change notification settings - Fork 120
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
Refactor to delegate task and conversion host code to backend #441
Refactor to delegate task and conversion host code to backend #441
Conversation
@miq-bot add-label transformation, hammer/yes, wip |
…VMCheckTransformed and TransformationThrottler/Utils
31d0e1c
to
b515b28
Compare
Some comments on commits fabiendupont/manageiq-content@6b6aee9~...b00873a content/automate/ManageIQ/Transformation/Infrastructure/VM/Common.class/methods/setdescription.rb
|
Checked commits fabiendupont/manageiq-content@6b6aee9~...b00873a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 content/automate/ManageIQ/Transformation/Common.class/methods/killvirtv2v.rb
content/automate/ManageIQ/Transformation/Common.class/methods/setmigrated.rb
content/automate/ManageIQ/Transformation/Common.class/methods/vmchecktransformed.rb
content/automate/ManageIQ/Transformation/Common.class/methods/vmtransform.rb
content/automate/ManageIQ/Transformation/Infrastructure/VM/Common.class/methods/collapsesnapshots.rb
content/automate/ManageIQ/Transformation/Infrastructure/VM/Common.class/methods/setdescription.rb
|
@miq-bot remove-label wip |
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.
@fdupont-redhat looks good.
@@ -7,20 +7,20 @@ module Common | |||
class CheckPoweredOn | |||
def initialize(handle = $evm) | |||
@handle = handle | |||
@task = ManageIQ::Automate::Transformation::Common::Utils.task(@handle) |
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.
@fdupont-redhat This block of code is being used in 2 places it might make sense to move them into an embedded method in a future PR
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.
Looks code there is some common code that can be moved to embedded methods in a separate PR later on
Refactor to delegate task and conversion host code to backend (cherry picked from commit 8e7ed4d) https://bugzilla.redhat.com/show_bug.cgi?id=1634029
Hammer backport details:
|
The PR aims at refactoring the code after moving most of the code related to tasks and conversion hosts to the ManageIQ models. This reduces the amount of code and should simplify maintenance.
Depends on:
Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1634029