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

[Reporting] Give users better information when pdf fails #126171

Conversation

jloleysens
Copy link
Contributor

Summary

Today when a PDF fails to generate a buffer we report that as a warning to users. This contribution makes a failure to generate a PDF buffer fail the report and sends a formatted message back to the user if it was due to an out-of-memory condition in the worker thread.

Screenshots

Screenshot 2022-02-22 at 17 49 44

Checklist

@jloleysens jloleysens added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes Team:Reporting Services v8.2.0 labels Feb 22, 2022
@jloleysens jloleysens requested review from a team as code owners February 22, 2022 16:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesUx)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reviewed the code within Github

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jloleysens jloleysens merged commit a8fb874 into elastic:main Feb 24, 2022
@jloleysens jloleysens deleted the reporting/give-users-better-information-when-pdf-fails branch February 24, 2022 08:54
@jloleysens jloleysens added the backport:skip This commit does not require backporting label Feb 24, 2022
lucasfcosta pushed a commit to lucasfcosta/kibana that referenced this pull request Mar 2, 2022
)

* raise pdf worker out memory error to common errors

* not having a PDF buffer for a PDF report should fail the report

* remove unused import

* make it possible to format Reporting errors nicely

* make pdf v1 behave the same way as v2 regarding not compiling a PDF

* remove unused import

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants