-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
feat(alert/reports): Pdf as attachment for alert and report #23170
feat(alert/reports): Pdf as attachment for alert and report #23170
Conversation
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.
@srinisubramanian @betodealmeida @villebro I have raised this PR to have PDF report as in attachment for dashboard in alert and report section. Please review changes. i see there there is a lot of request for such feature. |
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.
Great feature, especially for future work if we want to make it possible to export multiple tabs in one report 👍 A few comments, the main ones being:
- On the frontend I feel like we're introducing unnecessary complexity by having separate radio groups for chart and dashboard formats. For example, could we rather assemble an array of supported formats called
supportedFormats
that handles the conditionalities (is it a chart/dashboard? if it's a chart, does it support CSV? etc), and then render the radio group based on that? This way we wouldn't need two different radio groups with conditional rendering. - On the backend, let's have a proper type for
data_format
so _get_notification_content` doesn't accept any string.
Codecov Report
@@ Coverage Diff @@
## master #23170 +/- ##
===========================================
- Coverage 67.47% 56.37% -11.10%
===========================================
Files 1906 1907 +1
Lines 73403 73485 +82
Branches 7958 7977 +19
===========================================
- Hits 49527 41429 -8098
- Misses 21835 30005 +8170
- Partials 2041 2051 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…thub.com/shailendrasingh98/superset into feat/pdf_attachment_for_alert_and_report
Hi @shailendrasingh98! Thanks so much for working on this feature. I have some small design suggestions - this modal currently seems really cluttered in general, so I think it would be great if you could improve the spacings and alignment of the radi buttons and check box to make it even. Here is the figma file in which you can check the spacings (the modal looks slightly different, but the only thing relevant is the section that you've been working on) - https://www.figma.com/file/2C46hz9VgPMKnU8CORU3kY/Project-Template-(Copy)?node-id=4%3A4427&t=qBgrNpkNiMg79e02-1 Would you be able to make the changes? Thank you! |
@kasiazjc Thank you so much for feedback. I certainly can look into and make changes as needed. Currently i am just struggling to get integration tests run. |
@shailendrasingh98 can you rebase the PR to resolve the conflicts? After that I can re-review. |
Hi @shailendrasingh98! Any news? |
is anyone going to review the pr and/or make changes? |
@shailendrasingh98 I think there are a growing number of people that are eager to get their hands on what you've built. Is there any way we can help this along? It sounds like a rebase would be the first step, then hopefully we can help with tests and whatnot as well. |
any updates? |
@shailendrasingh98 will you be able to continue this work? |
We have a new PR for this in progress that will use vector-based pdfs instead of rasterized ones. I'll close this PR for now. |
Hi @eschutho, do you have an ETA on when PDF reports might be available? Thanks! |
feat(alert/reports): Pdf as attachment for alert and report
SUMMARY
The old alert system has an option to send chart / dashboard report as PNG in the email/slack. This is adding the pdf file as an attachment to the alert/report system.
BEFORE SCREENSHOTS OR ANIMATED GIF
AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION