-
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
Switch to call lookup_by_* methods #584
Conversation
The find_by_* methods defined in manageiq repo has conflicts with rails dynamic finding and now they have been changed to lookup_by_*. Switching the callers in this repo to the lookup_by_* methods. Depend on ManageIQ/manageiq#19313
Checked commit astrozzc@b5d6dd5 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Pull Request Test Coverage Report for Build 3638
💛 - Coveralls |
@@ -19,7 +19,7 @@ def main | |||
category_name = @handle.root['dialog_tag_category'] | |||
if category_name.present? | |||
@handle.log(:info, "Selected tag category: #{category_name}") | |||
category = @handle.vmdb(:classification).find_by_name(category_name) | |||
category = @handle.vmdb(:classification).lookup_by_name(category_name) |
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.
@mkanoor @tinaafitz The find_by_*
calls work today because the automate engine allows these specific calls to pass through, otherwise they need to be specified with expose
or similar technique in the service_models.
Should it now include lookup_by
and the depreciation side will require some thinking. Not sure it should hold up these PRs.
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.
@gmcculloug This is ok since its our automate methods, we just have to aware of customers scripts and if they use the find_by_* methods.
The find_by_* methods defined in manageiq repo has conflicts with
rails dynamic finding and now they have been changed to lookup_by_.
Switching the callers in this repo to the lookup_by_ methods.
Depend on ManageIQ/manageiq#19313, ManageIQ/manageiq-automation_engine#373