-
Notifications
You must be signed in to change notification settings - Fork 31
Generating report directly from dashboard don't work #355
Comments
Hi did you save the dashboard/visualization after you change the timerange or anything on the dashboard? |
No, I changed the timerange and pressed Download PDF. Using the timerange saved in the dashboard works (just open dashboard and press Download, works) |
I realized this should work whether you saved the dashboard or not, becuase the url is changed after you changed the time filter. We took that url and covert to absolutte start and end time for reporting. This is a pretty basic case that we support for generating report. I just tested locally and it works fine. Could you test with the sample dataset as well and let us know? Meantime, we'll also look at the error you provided. |
I think that with sample dataset it will work, something in my environment or data is causing this. I'm investigating the issue: The error occurs on
In order to the return of
Doing some tests on console (with the "broken" dashboard opened):
Doing some tests, I've figured out that, when using the default time range for dashboard (here is always "last 15 minutes" ), and this range in DateMath is: So the problem here is that we need to decode the URL before parsing the date. I'll send a PR with the fix for this issue. |
Also noticed that using an absolute time range is not working properly. Try setting
|
Doing the same test above with
Note the I'm doing a series of tests with this plugin, and as you can see in latest issues, I'm founding a lot of issues related with the decision to use ISO Duration instead of sticking with kibanas/elasticsearch deafult Date Math |
Steps to reproduce:
Reporting
Download PDF
Investigating the issue, found that an error is logged at browser console:
Note that if using an absolute date, it outputs the PDF but shows a lot of error alerts:
rison decoder error: missing ':'
Seems to happens because and bad formatted url: elastic/kibana#75957
The text was updated successfully, but these errors were encountered: