You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "vyaradaikin (via GitHub)" <gi...@apache.org> on 2025/03/07 13:05:39 UTC
[I] PDF report received in Slack downloaded without .pdf extension [superset]
vyaradaikin opened a new issue, #32539:
URL: https://github.com/apache/superset/issues/32539
### Bug description
PDF report that is sent by schedule, downloads without .pdf extension in Slack
Example in a screenshot
Can a report be sent as a file with PDF extension?
### Screenshots/recordings

### Superset version
4.1.1
### Python version
3.11
### Node version
16
### Browser
Chrome
### Additional context
`superset_config.py
class CeleryConfig(object):
broker_url = REDIS_URL
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
"superset.tasks.thumbnails",
"superset.reports",
"superset.tasks",
"superset.dashboards"
)
result_backend = REDIS_URL
worker_prefetch_multiplier = 10
task_acks_late = True
task_annotations = {
"sql_lab.get_sql_results": {
"rate_limit": "100/s",
},
}
beat_schedule = {
"reports.scheduler": {
"task": "reports.scheduler",
"schedule": crontab(minute="*", hour="*"),
},
"reports.prune_log": {
"task": "reports.prune_log",
"schedule": crontab(minute=0, hour=0),
}
}
CELERY_CONFIG = CeleryConfig
FEATURE_FLAGS = {
"ALERT_REPORTS": True,
"ALERT_REPORT_SLACK_V2": True
}
ALERT_REPORTS_NOTIFICATION_DRY_RUN = False
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_BASEURL = get_env_variable('WEBDRIVER_BASEURL')
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
WEBDRIVER_WINDOW = {
"dashboard": (1600, 2000),
"slice": (3000, 1200),
"pixel_density": 1,
}
SCREENSHOT_LOCATE_WAIT = 100
SCREENSHOT_LOAD_WAIT = 600
`
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] PDF report received in Slack downloaded without .pdf extension [superset]
Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on issue #32539:
URL: https://github.com/apache/superset/issues/32539#issuecomment-2715421251
Looking this now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] PDF report received in Slack downloaded without .pdf extension [superset]
Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila closed issue #32539: PDF report received in Slack downloaded without .pdf extension
URL: https://github.com/apache/superset/issues/32539
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] PDF report received in Slack downloaded without .pdf extension [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #32539:
URL: https://github.com/apache/superset/issues/32539#issuecomment-2706415614
<!-- Greeting -->
Hey there, @vyaradaikin! I'm here to help you with any bugs, questions, or contributions you have for Superset. Let's tackle this together!
<!-- Answer -->
Yes, a PDF report sent by schedule in Superset can be downloaded with a .pdf extension in Slack. The `SlackNotification` class in the Superset codebase includes a method `_get_inline_files` that ensures the content is recognized as a PDF when uploaded to Slack. This method checks if the content includes a PDF and returns it with the file type "pdf", which is then used in the `send` method to upload the file to Slack, ensuring it is recognized as a PDF <sup>[[1]](https://github.com/apache/superset/blob/master/superset/reports/notifications/slack.py)</sup>.
However, there is a known issue in Superset version 4.1.1 where reports are not sent when selecting to send as PNG, CSV, or text, which might be related to your problem <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/CHANGELOG.md)</sup>. You might want to check if this issue affects your setup or if there are any updates or patches available that address this problem.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/57437112-14fd-433d-be90-88a41d779f1a?feedback_type=other)</sup>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] PDF report received in Slack downloaded without .pdf extension [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #32539:
URL: https://github.com/apache/superset/issues/32539#issuecomment-2711287334
@eschutho - would you be able to triage this a bit? I know we at Preset worked on this, so maybe we have some insight :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org