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
Need to call alert_profile_edit_load_edit when cancel is pressed #3235
Conversation
@h-kataria I was looking at this BZ just right before the BZ was assigned to you (somebody was faster than me :D ) and I found almost the same fix as you. I have just one question: what if https://github.com/ManageIQ/manageiq-ui-classic/pull/3235/files#diff-dec290862651b2c668afbc0cfd64e57bR9 returns in some special case |
@hstastna https://github.com/h-kataria/manageiq-ui-classic/blob/c6f119b7f9c3333c31c6f20eb78bd479e1cc8f20/app/controllers/miq_policy_controller/alert_profiles.rb#L76 takes care of that, in case load of |
@h-kataria You are right, it should redirect but... When I made |
alert_profile_edit_load_edit method loads `@edit` that's being used in alert_profile_load method. Issue was introduced during cleanup in ManageIQ#2026 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1533633
c6f119b
to
0d97247
Compare
@hstastna good catch, addressed the issue |
Checked commit h-kataria@0d97247 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 spec/controllers/miq_policy_controller/alert_profiles_spec.rb
|
Tested successfully in the UI. |
Need to call alert_profile_edit_load_edit when cancel is pressed (cherry picked from commit 6361567) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1534060
Gaprindashvili backport details:
|
alert_profile_edit_load_edit method loads
@edit
that's being used in alert_profile_load method. Issue was introduced during cleanup in #2026Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1533633
@dclarizio @martinpovolny please review.