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
Fix for Default service dialog values not included in EVM when 'refresh_dialog_fields' action invoked #19005
Conversation
0f0722d
to
7298e4f
Compare
Checked commits eclarizio/manageiq@eb51c01~...7298e4f with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@tinaafitz @gtanzillo I had to update the code a bit after testing on the appliance. Basically what happened was if you didn't pass in parameters, it went and used my new code that set the static values beautifully....but then overwrote them with nils because you didn't pass in parameters, ending up with exactly the same response as before. D'oh. So instead, we pass |
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. After discussion with @tinaafitz, @abellotti, @eclarizio and @d-m-u we decided that this was the best option to address the reported issue
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.
lgtm
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.
@eclarizio Thanks so much for your work on this PR.
@eclarizio Are you or @billfitzgerald0120 still planning on testing this manually? I was planning on merging after that. |
Sorry @eclarizio, @billfitzgerald0120 missed the comment above. Thanks! I'll merge 👍 |
|
Fix for Default service dialog values not included in EVM when 'refresh_dialog_fields' action invoked (cherry picked from commit a8a06f8) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1731977
Hammer backport details:
|
When calling the API directly, the
refresh
option gets set to true, and ends up making a call toload_values_into_fields
. This is fine if the API call provides the values that the field should be refreshed with, but without the values, customer was running into an issue where they had a few fields that were static and not visible to the user (so therefore just automatically filled in and ready to go) that they did not pass in to the API call in 5.9.6.5. On updating to 5.10.6.1, I believe that #17329 made the change to attempt to eliminate automate calls that were happening when calling refresh that didn't need to happen, but also this eliminated the "call" to get the static field values. Again, this is fine if the API call provides these static values in the POST request (which is what the UI does), but direct use of the API does not necessarily inform the user that they should do that.For @tinaafitz and @gtanzillo (and anyone else) to review: it should be easier to track the "main" change if you go commit by commit, since the first commit contains the "meat" of the change, the second commit just moves the
#load_dialog
method into theprivate
namespace since it's not used elsewhere and separates out the block of if/else logic into another method.@miq-bot add_reviewer @tinaafitz
@miq-bot add_reviewer @gtanzillo
@miq-bot add_label bug
@tinaafitz My apologies but I've been out of the cloudforms loop for a bit, so please add any other labels
hammer/yes
,hammer/no
(?) that this might need.Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1730813