-
Notifications
You must be signed in to change notification settings - Fork 356
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
Remove replacement of whole right cell and instead render flash message div so flash message isn't doubled #3180
Conversation
@eclarizio can you look at this please sometime? |
@miq-bot add_label bug |
@miq-bot assign @dclarizio |
@d-m-u changes here need to be tested/verified closely since this change is removing rendering of flash message partial from expression editor that is being used on many screens, don't want to end up breaking something else. |
@h-kataria from what I saw, all these errors are added to the flash message here as well |
@h-kataria Do you have any suggestions here on how to best "tested/verified closely"? Need advice on how to move forward with this fix. |
@d-m-u sorry for the delay in looking into this, in my opinion you can fix this issue by replacing https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/miq_policy_controller/conditions.rb#L89 with |
@@ -7,7 +7,6 @@ | |||
= javascript_tag("ManageIQ.expEditor.second.title = '#{@edit[@expkey][:val2][:title]}';") | |||
|
|||
#exp_editor_div | |||
= render :partial => 'layouts/flash_msg', :locals => {:flash_div_id => 'exp_editor_flash'} |
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.
@d-m-u we need to keep rendering of flash message partial here, to show flash messages specific to expression editor.
Checked commit d-m-u@f4e6f09 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Remove replacement of whole right cell and instead render flash message div so flash message isn't doubled (cherry picked from commit d64dcc1) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1553340
Gaprindashvili backport details:
|
With the right cell being replaced, the control policy description validation appears twice. This removes the replacement of the right cell per h-kataria's suggestion at the review that's at the bottom of this PR.
Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1531469