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

Do not store download_summary_pdf using remember tab #4945

Merged
merged 1 commit into from
Nov 22, 2018

Conversation

skateman
Copy link
Member

After exporting to PDF printing a textual summary of a VM or instance, the export to PDF printing screen gets remembered as the last action for that particular menu hierarchy. This causes issues when navigating away from the summary screen and then navigating back.

The solution is simple: we should not store the export to PDF printing screen in the menu hierarchy, but the implementation is ugly and I know it. @martinpovolny I'm terribly sorry for this solution and I promise I will fix it in a followup PR.

i1-will-refactor-that-code-later-today-and-other-31878628

My long term solution would be to split up the get_global_session_data and set_global_session_data methods into smaller before_action methods and use skip_before_action in controllers that behave differently from the default one. If you give me the green light, I'll create an issue for this.

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

@miq-bot add_label bug, gaprindashvili/no
@miq-bot add_reviewer @martinpovolny

@miq-bot
Copy link
Member

miq-bot commented Nov 20, 2018

Checked commit skateman@3830bbd with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@martinpovolny martinpovolny added this to the Sprint 100 Ending Dec 3, 2018 milestone Nov 22, 2018
@martinpovolny martinpovolny self-assigned this Nov 22, 2018
@martinpovolny martinpovolny merged commit 297ba8b into ManageIQ:master Nov 22, 2018
@skateman skateman deleted the remember-print branch November 22, 2018 13:49
simaishi pushed a commit that referenced this pull request Nov 26, 2018
Do not store download_summary_pdf using remember tab

(cherry picked from commit 297ba8b)

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

Hammer backport details:

$ git log -1
commit b91326830a6d8162efd506532c63103672ab2f43
Author: Martin Povolny <[email protected]>
Date:   Thu Nov 22 14:46:09 2018 +0100

    Merge pull request #4945 from skateman/remember-print
    
    Do not store download_summary_pdf using remember tab
    
    (cherry picked from commit 297ba8b7dd70bde20ca8a5d4325499f65c71339f)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1649867

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.

4 participants