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

dropdownMenu - don't use data-remote when not provided #2883

Merged
merged 1 commit into from Dec 1, 2017
Merged

dropdownMenu - don't use data-remote when not provided #2883

merged 1 commit into from Dec 1, 2017

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Nov 30, 2017

When the link has data-remote="", downloading a PDF doesn't work. (The request succeeds, the data is returned, but the browser ignores it and doesn't download.)

data-remote is used for other things, like minimizing the dashboard.

Thus, changing to use ng-attr-data-remote, which will do the same thing as before when the attribute value is provided, but won't add the attr when empty.

Cc @mzazrivec , @ZitaNemeckova

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

When the link has `data-remote=""`, downloading a PDF doesn't work. (The request succeeds, the data is returned, but the browser ignores it and doesn't download.)

`data-remote` is used for other things, like minimizing the dashboard.

Thus, changing to use `ng-attr-data-remote`, which will do the same thing as before when the attribute value is provided, but won't add the attr when empty.

https://bugzilla.redhat.com/show_bug.cgi?id=1516784
@himdel himdel added the bug label Nov 30, 2017
@himdel
Copy link
Contributor Author

himdel commented Nov 30, 2017

Note: if you're getting a Couldn't find MiqReportResult with 'id'=10000000000016 [WHERE ("miq_report_results"."miq_group_id" IS NOT NULL)] [dashboard/widget_to_pdf] when testing, that's a separate bug.

As a workaround, you need to find the entry in miq_report_results table, and add a miq_group_id (change from NULL to your current group).

@miq-bot
Copy link
Member

miq-bot commented Nov 30, 2017

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/cd2d8ef36181325972d208d1a8ae06e4c0fa9669 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@mzazrivec mzazrivec assigned mzazrivec and unassigned h-kataria Dec 1, 2017
@mzazrivec mzazrivec added this to the Sprint 75 Ending Dec 11, 2017 milestone Dec 1, 2017
@mzazrivec mzazrivec merged commit 12422b8 into ManageIQ:master Dec 1, 2017
@himdel himdel deleted the dropdown-remote branch December 1, 2017 13:29
@himdel
Copy link
Contributor Author

himdel commented Dec 1, 2017

simaishi pushed a commit that referenced this pull request Dec 1, 2017
dropdownMenu - don't use data-remote when not provided
(cherry picked from commit 12422b8)

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

simaishi commented Dec 1, 2017

Gaprindashvili backport details:

$ git log -1
commit 78e3dc6af2118d6d316327851a8a3430df9c12ae
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Fri Dec 1 10:32:37 2017 +0100

    Merge pull request #2883 from himdel/dropdown-remote
    
    dropdownMenu - don't use data-remote when not provided
    (cherry picked from commit 12422b832223ebe558a58339e008080d411f1aca)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1519840

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

5 participants