-
Notifications
You must be signed in to change notification settings - Fork 74
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
New service model for v2v request and task #155
Conversation
@miq-bot add_label v2v |
@bzwei Cannot apply the following label because they are not recognized: v2v |
cc @fdupont-redhat @lfu |
06971ac
to
0c19265
Compare
0c19265
to
2e1b67d
Compare
2e1b67d
to
cccc456
Compare
@miq-bot add_label enhancement |
|
||
def transformation_destination(source_obj) | ||
ar_method do | ||
wrap_results(@object.transformation_destination(source_obj.object_class.find(source_obj.id))) |
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.
@bzwei Should this use find! instead of find
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.
I tested that find
raises error if is not found. There is no find!
in AR model.
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.
@bzwei Can we push this into the backend model?
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.
I assume this is here because you don't want to do source_obj.object_class
outside of automate?
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.
Yes, otherwise the backend needs to covert a service model to AR model.
Checked commit bzwei@cccc456 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@bzwei un-wip? |
@miq-bot remove_label wip |
New service model for v2v request and task
New service model for v2v request and task (cherry picked from commit 9fd66be)
Gaprindashvili backport details:
|
depends on ManageIQ/manageiq#16960