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

Move the backend-generated PDF report's styling from the frontend #18226

Merged
merged 1 commit into from
Nov 22, 2018

Conversation

skateman
Copy link
Member

@skateman skateman commented Nov 21, 2018

Since there is no on-the-fly asset compilation in production, there is no access to the Rails.application.assets object. Also the pdf_report.css and the files it loads are no longer used in the UI. Eventually this styling needs to be removed and a unified PDF generation should be used, probably via a headless webdriver on the backend.

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

@miq-bot add_label bug, gaprindashvili/no, hammer/yes
@miq-bot add_reviewer @h-kataria
@miq-bot add_reviewer @martinpovolny

@skateman
Copy link
Member Author

@martinpovolny I realize the fact that having the PDF generation separated between the two repos is wrong and I'm thinking on a better solution...

@himdel
Copy link
Contributor

himdel commented Nov 21, 2018

Please see ManageIQ/manageiq-ui-classic#4949 (comment)

I'm not sure we need to be abusing the asset pipeline for this.

EDIT: LGTM now 👍

@skateman skateman changed the title Use the assets manifest to retrieve the stylesheet for e-mail reports Move the backend-generated PDF report's styling from the frontend Nov 22, 2018
@martinpovolny martinpovolny added this to the Sprint 100 Ending Dec 3, 2018 milestone Nov 22, 2018
@martinpovolny martinpovolny merged commit 3129ad7 into ManageIQ:master Nov 22, 2018
@martinpovolny martinpovolny self-assigned this Nov 22, 2018
@skateman skateman deleted the pdf-report-stylesheet-path branch November 22, 2018 12:53
simaishi pushed a commit that referenced this pull request Nov 26, 2018
 Move the backend-generated PDF report's styling from the frontend

(cherry picked from commit 3129ad7)

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

Hammer backport details:

$ git log -1
commit 48e0ca76b810b4b4d640cc4c64bdf406a4dd657e
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Thu Nov 22 13:51:39 2018 +0100

    Merge pull request #18226 from skateman/pdf-report-stylesheet-path
    
     Move the backend-generated PDF report's styling from the frontend
    
    (cherry picked from commit 3129ad7d06980e6c9bde69a664f4a01cdc5b0435)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650057

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