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

Clear modal after Applying advanced search #5909

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

bmclaughlin
Copy link
Contributor

When applying a boolean advanced search the modal is not hidden resulting in an unclickable screen.

Reproduced via:
Compute - Cloud - Instances - All Instances
Advanced search consisting of: Field: Instance : Active = "true"

@miq-bot add_labels bug, compute/cloud

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1725838

@bmclaughlin
Copy link
Contributor Author

@himdel Is there a better place to hide the modal here? Per #5875 this looks like another instance of needing to update replace_right_cell to me.

@miq-bot
Copy link
Member

miq-bot commented Jul 30, 2019

Checked commit bmclaughlin@7c7a4de with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 1 offense detected

app/views/layouts/_adv_search_footer.html.haml

  • ⚠️ - Line 30 - Line is too long. [161/160]

@himdel
Copy link
Contributor

himdel commented Jul 31, 2019

Oh, interesting..
Yeah, looks like this is happening because we never actually hide the modal, only replace the div itself so that the modal is hidden, which doesn't affect the backdrop.

So yeah, I think your fix works just fine 👍

(Just starting to wonder whether we should extend ExplorerPresenter to support hiding modals explicitly, since this is needed for more than just quick search, but that's probably a larger refactoring.)

@himdel himdel merged commit 9686607 into ManageIQ:master Jul 31, 2019
@himdel himdel added this to the Sprint 117 Ending Aug 5, 2019 milestone Jul 31, 2019
@himdel himdel self-assigned this Jul 31, 2019
@bmclaughlin bmclaughlin deleted the hide-advanced-search-modal branch July 31, 2019 13:22
simaishi pushed a commit that referenced this pull request Jul 31, 2019
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit 65a4963d7d67134936b4a02cb1d88a82f9f6c74d
Author: Martin Hradil <[email protected]>
Date:   Wed Jul 31 12:59:49 2019 +0200

    Merge pull request #5909 from bmclaughlin/hide-advanced-search-modal
    
    Clear modal after Applying advanced search
    
    (cherry picked from commit 96866070a170a0ae04fbf3c8a4a46628fea6ef8a)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1725838

@hstastna
Copy link

Just a note that we need to backport this PR to hammer to fix the bug https://bugzilla.redhat.com/show_bug.cgi?id=1811145. Thanks.

simaishi pushed a commit that referenced this pull request Mar 10, 2020
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit 45b89d3b03e28969f6345482a952bdba080a55ab
Author: Martin Hradil <[email protected]>
Date:   Wed Jul 31 12:59:49 2019 +0200

    Merge pull request #5909 from bmclaughlin/hide-advanced-search-modal

    Clear modal after Applying advanced search

    (cherry picked from commit 96866070a170a0ae04fbf3c8a4a46628fea6ef8a)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1811145

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.

5 participants