Manageiq-ui-classic: Print or Export to PDF for saved reports is missing data

Created on 4 Dec 2019  路  5Comments  路  Source: ManageIQ/manageiq-ui-classic

Downloading a report to pdf has empty report, Only report headers are visible.

works fine for list of hosts and host summary, it looks like only an issue with saved reports

Screenshot from 2019-12-04 15-34-45

bug

All 5 comments

@h-kataria : I need some help understanding what is the expected behavior here.

  • when the PDF download is requested, should the existing report result be downloaded or shall a new report run be initialized and a new report result created and displayed?

I am asking because currently a new reprot results is created but then there's code that explicitly asks for the last run time of the OLD (previous) report result.

That OLD last run time is then presented together with the NEW data.

To me that looks like multiple people touching this area "fixing" conflicting BZs ;-) A mess.

I was trying to find some meaning in this when I probably caused this regressing. But I'd prefer to find some order in this rather than "just fix" this issue.

WDYT?

Might be that I broke this by using the NEW report result for the data. But then why is the task being executed? Why don't we directly display the old report restult w/o firing any task?

Might be that previously @skateman did changes when removing the PDF generator and using HTML to generate the PDF in the browser. May be he kept the running of the report.

Before that time it was actually needed to run the report to get the PDF results. Because only the HTML lines where saved, not the PDF.

And even before that someone "fixed" the "wrong" time of run of the report (because he/she was expecting the old date, but the PDF got generated with a new date)....

Never mind the history, I need to understand what is the expected "correct" behavior ;-)

Ok, according to our f2f meeting I will proceed with removing the execution of the report and making sure that the very same data that was displayed on the screen is being exported to PDF.

That means removing the wait_for_task logic from this path and having just one report_result_id to deal with -- the old, existing one.

@h-kataria I think this can be closed. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hstastna picture hstastna  路  7Comments

miha-plesko picture miha-plesko  路  6Comments

himdel picture himdel  路  8Comments

epwinchell picture epwinchell  路  5Comments

agrare picture agrare  路  5Comments