-
Notifications
You must be signed in to change notification settings - Fork 91
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
Service detail screen - don't run automate methods #1551
Conversation
(whitespace/comma change only)
…ions object so we can have more options
Asking the API for `provision_dialog` evaluates any automate methods it needs to populate the dialog data. That's not always desirable, parametrizing. https://bugzilla.redhat.com/show_bug.cgi?id=1695804
@h-kataria , @AllenBW please take a look? :) |
Checked commits https://github.com/himdel/manageiq-ui-service/compare/c3c44e32e250df9593c304006d590bdc1322120e~...1466c421ea4d9ddc35927024392ff5e7ff6d345d with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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 good to me! neat solution!
Service detail screen - don't run automate methods (cherry picked from commit 0c37f06) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1755393
Hammer backport details:
|
When displaying the service detail screen (
/services/:id
), we're doing an API request for the details, includingprovision_dialog
.But, computing
provision_dialog
evaluates all the automate methods,which is not useful when we don't display the dialog afterwards.
=> Added a
runAutomate
option togetService
, and set it to false when on the screen.(Ops-side, this was solved in ManageIQ/manageiq-ui-classic#5126, by reimplementing a readonly part of dialog-user to display the fields with values from
options
. SUI-side, I'm not seeing the dialog being displayed, so no need for that.)Cc @eclarizio
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1695804