-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Dashboard generated via report scheduling is truncated #13097
Comments
@DRavikanth You're using the new version of alerts and reports right? I don't think it's using that config value unfortunately, it's currently using hardcoded values superset/superset/utils/screenshots.py Line 205 in 956f276
|
That's unfortunate. |
We should change this to use the config values. I can open a PR but I'm not set up to test this at the moment. |
I observed same issue too. New alerts and reports does not use |
I sent PR |
@iercan, Thanks for the PR. Is there a way we can avoid driving it by configuration. Instead load the dashboard dynamically according to the size of it? I am not a Python guy and not sure how web driver works but I think loading the dashboard dynamically will be more elegant. |
Not sure if there is a way to get dashboard size |
I'm not really familiar with webdriver. You can probably query the dom for the size of each div, that's significantly more effort though. One of the issues we might hit is that the screenshot module is also used for generating thumbnails for the dashboard/chart card views, so changing the aspect ratios may cause issues. |
Unfortunately I can't because I'm not the one who gonna decide that. I'm just a regular contributor :) |
I see. Thanks for confirming. I will keep watching the PR. :) |
@DRavikanth not sure about release, they always take a while. Once the PR is merged the code should be available as a docker image under the |
@DRavikanth, @iercan, @nytai, after the PR is merged we can tag it for the next release (probably 1.1.0) |
@dpgaspar thanks for confirming |
Hey @dpgaspar @iercan @nytai
My logs
My report is still truncated Is there anything else I need to adjust? |
For anyone experiencing this;
|
@jawabuu Yeah for some reason this option need to be removed if you using chrome 90 or above |
Thanks @iercan. This should probably be documented. |
Hello All, |
The Firefox gecko driver does a better job at capturing full page (height) reports. |
A clear and concise description of what the bug is.
Bug is related to scheduling email part. There is a huge dashboard with 25 visuals that requires scrolling the dashboard. When an email is sent for this dashboard, the image is truncated to only first screen(everything that needs to be scrolled is getting skipped). I have tried increasing the
WEBDRIVER_WINDOW
but still the same issue.Expected results
The dashboard screenshot that user receives in email should have the entire dashboard instead of truncated image.
Actual results
Image gets truncated after the first page. Anything that needs to be scrolled is not presented in the email
How to reproduce the bug
Environment
1.0.1
3.6
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: