opensearch-project / dashboards-reporting

Apache License 2.0
9 stars 29 forks source link

[BUG] Issues with Maps and Table visualizations in pdf/png reports #336

Open liamhess opened 4 months ago

liamhess commented 4 months ago

Describe the bug The reports that opensearch dashboards produce have multiple issues. One is that table fields just get cut off. This is happening since version 2.5 in which, as far as I understand, Opensearch changed the underlying engine that produces the reports from headless chromium to html2canvas? Anyway this is how tables look: image

Also, maps don't get displayed at all: image

Then also if a dashboard is too large it just gets cut off. This obviously shouldn't happen but is a minor problem since

Most dashboards will never be that big If you run into that issue, you can always split it into half and do two reports However the table bug is really weird and if fixing is not viable maybe going back to headless chromium would be an idea.

To Reproduce Steps to reproduce the behavior:

Go to the https://playground.opensearch.org/ Go to any dashboard that has tables or maps (for the table issue: visual consistency dashboard, for the maps issue: global flight dashboard) generate a pdf report of either of the two look at it and see that either the tables or the maps are broken Expected behavior The reports shouldn't have those issues, they should be as close to what you would see on the website.

OpenSearch Version Did some testing, happens since version 2.5. I looked through github and found a pull request where someone changed from headless chromium to html2canvas. Can't find it anymore tho

Dashboards Version 2.5-2.12

Plugins

Whatever the playground has. But has happened on my installations too, where I have only the security plugin

Host/Environment (please complete the following information):

OS: MacOS, same Problem on a local windows 11 arm vm that i run through UTM Browser and version: Happened to me on Arc, Chrome and Brave

dblock commented 1 month ago

Catch All Triage - 1 2 3 4 5 6