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 breaking VMs page after closing user input dialog #668
Fix breaking VMs page after closing user input dialog #668
Conversation
@miq-bot add_label bug, ui |
@hstastna verified fix in UI, you think you can add a spec test around this method. |
@hstastna see @h-kataria's comment above. |
@h-kataria @dclarizio I can add a spec test if needed. But maybe this can be merged and at least, it will work. And a spec test can be in another PR. Or do we need it in this PR? |
@hstastna since this is not high pri. BZ i suggest adding spec test in this PR itself. Let me know if you need help with spec test. |
b0127fc
to
166e7ae
Compare
@h-kataria I've added a spec test in this PR. |
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1425840 Fix breaking VMs page after closing user input dialog and clicking view selector after creating a filter in Advanced search in Compute->Infrastructure->Virtual Machines, VMs or Templates accordion.
166e7ae
to
735529e
Compare
Checked commits hstastna/manageiq-ui-classic@b2de84b~...735529e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Euwe backport (to manageiq repo) details:
|
Fix breaking VMs page after closing user input dialog (cherry picked from commit 7986de6) https://bugzilla.redhat.com/show_bug.cgi?id=1479941
Fine backport details:
|
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1425840
Fix breaking VMs page after closing user input dialog
and clicking view selector after creating a filter
in Advanced search in Compute->Infrastructure->Virtual Machines,
VMs or Templates accordion.
After this fix:
Virtual Machines page doesn't break anymore.
Search field doesn't disappear anymore.
View Selector control doesn't break in Templates view.
Advanced search button appears after changing view normally.
The problem was:
x_root
changed value from"root"
tonil
inquick_search_cancel_click
methodwhen clicked on "Cancel" button in user input dialog.
I think that there is some reason for this, but as I was exploring,
x_root
had value"root"
in the method whether any filter was applied or not,in other working pages. The value affects the proper view
of the page when changing the view.
Before:
After: