-
Notifications
You must be signed in to change notification settings - Fork 897
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 broken stylesheet path for PDFs #14793
Conversation
@miq-bot add_label bug |
@hayesr could this be related to https://bugzilla.redhat.com/show_bug.cgi?id=1442067 ? |
@imtayadeway It could indeed. Not sure how graphs are generated, this fixes basic stylesheets, but things like images will take more. (I'm also looking into that) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this logic neeeds to be more pluggable to find stylesheets provided by other pluggable components.
@bdunne perhaps this generator shouldn't try to figure out the path at all. We can just expect the thing that's calling it to use the right path. |
Is there an easy fix to make this pluggable? Otherwise, this fixes a bug now and maybe we can punt making it flexible until that's needed? |
@hayesr something like this would work: Vmdb::Plugins.instance.vmdb_plugins.each do |plugin|
plugin.root.join("app/assets/stylesheets", whatever)
end You may want to use detect rather than each if you're only looking for one. And you'll need to see is the file exists. |
@bdunne I run into a weird situation where |
It can be an empty array if you |
Checked commit hayesr@46719a3 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@hayesr can you add a before/after screenshot of the PDFs? Thx, Dan |
Restarting CI |
@bdunne Ready for another look. |
looks good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
@hayesr @bdunne can this be |
@simaishi No, |
@hayesr In that case, is ManageIQ/manageiq-ui-classic#1332 still needed or just need ManageIQ/manageiq-ui-classic#1363? With multiple PRs it's getting harder to track what's needed and not. Can you please add/remove |
@hayesr Cannot remove the following label because they are not recognized: euwe/conflict euwe/yes |
@hayesr Cannot apply the following label because they are not recognized: euwe/no fine/no |
The code points to the wrong place after the UI repo split. This changes it to point to the stylesheet under the UI engine.
This fixes basic PDF styles, but images remain to be addressed.
Dependent on ManageIQ/manageiq-ui-classic#1332 to work.
Related:
Currently
After