Skip to content
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

Merged

Conversation

hstastna
Copy link
Contributor

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" to nil in quick_search_cancel_click method
when 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:
search_field1

After:
search_field2

@hstastna
Copy link
Contributor Author

@miq-bot add_label bug, ui

@h-kataria
Copy link
Contributor

@hstastna verified fix in UI, you think you can add a spec test around this method.

@dclarizio
Copy link

@hstastna see @h-kataria's comment above.

@hstastna
Copy link
Contributor Author

hstastna commented Apr 6, 2017

@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?

@h-kataria
Copy link
Contributor

@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.

@hstastna hstastna force-pushed the Search_field_user_input_dialog_VMs branch from b0127fc to 166e7ae Compare June 26, 2017 14:10
@hstastna
Copy link
Contributor Author

@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.
@hstastna hstastna force-pushed the Search_field_user_input_dialog_VMs branch from 166e7ae to 735529e Compare July 18, 2017 14:06
@miq-bot
Copy link
Member

miq-bot commented Jul 18, 2017

Checked commits hstastna/manageiq-ui-classic@b2de84b~...735529e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@martinpovolny martinpovolny merged commit 7986de6 into ManageIQ:master Jul 31, 2017
@martinpovolny martinpovolny added this to the Sprint 66 Ending Aug 7, 2017 milestone Jul 31, 2017
@simaishi
Copy link
Contributor

simaishi commented Aug 2, 2017

Euwe backport (to manageiq repo) details:

$ git log -1
commit aa91897ee2fc5072219b877f8b31fad282010cc9
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Mon Jul 31 14:29:57 2017 +0200

    Merge pull request #668 from hstastna/Search_field_user_input_dialog_VMs
    
    Fix breaking VMs page after closing user input dialog
    (cherry picked from commit 7986de60c5dac17afbca881470602c0541760e26)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1477725

simaishi pushed a commit that referenced this pull request Aug 9, 2017
Fix breaking VMs page after closing user input dialog
(cherry picked from commit 7986de6)

https://bugzilla.redhat.com/show_bug.cgi?id=1479941
@simaishi
Copy link
Contributor

simaishi commented Aug 9, 2017

Fine backport details:

$ git log -1
commit f6b912a22b414c82ce11f30163f15952eacda9f6
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Mon Jul 31 14:29:57 2017 +0200

    Merge pull request #668 from hstastna/Search_field_user_input_dialog_VMs
    
    Fix breaking VMs page after closing user input dialog
    (cherry picked from commit 7986de60c5dac17afbca881470602c0541760e26)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1479941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants