-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Reports without a chart cannot be screenshot by celery worker #17245
Comments
@madsbuch this is indeed an unfortunate fringe case. I agree with your assessment, and you seem to have pinpointed the piece of code that would need to be modified to handle this specific case (potentially we might need to add/change some class names on the frontend components). Would you be open to taking this task on in the form of a PR? I would be happy to assist. Also, it would be interesting to hear about the use case to understand this need better (=dashboard without regular charts). |
We faced the same problem by trying to add an alert to a dashboard with a pure markdown document. In our scenario, this dashboard is a "help" about how to use the superset. Obviously it is not a good choice to send an alert on this "help", however unfortunately it happend to be the dashboard I used to test whether the alert system is working ;(. It took me an afternoon to figure out the problem, and had a same conclusion with @madsbuch :D |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
I validated this just now on 3.0.0rc3. Agreed that it's low priority. |
Closing this older issue in favor of #25237 As always in open-source, PRs welcome ❤️ |
Scheduled reporting and alerts use a celery worker. This worker authenticates users and renders a standalone reports page using Selenium and a headless browser. Finally, this is emailed.
It appears that Selenium is set to wait until the class
slice_container
is available (https://github.com/apache/superset/blob/master/superset/utils/webdriver.py#L130-L134). However, it seems like this class is only added to Charts (https://github.com/apache/superset/search?q=slice_container). Th problem occurs when no charts are available on reports.I know this is an obscure conor case that probably don't merit too much change. However, it took me some time to debug this from the error I got
How to reproduce the bug
Expected results
To have the report screenshot and send
Actual results
Selenium times out.
Environment
(please complete the following information):
apache/superset:1.3.0
, from dockerhubFEATURE_FLAGS = {"ALERT_REPORTS": True}
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Knowing when the page is rendered is a hard one. It might also be documentation or more verbose error handling that is the solution.
Let me know how to best contribute a solution to this, if that is an option.
The text was updated successfully, but these errors were encountered: