You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "villebro (via GitHub)" <gi...@apache.org> on 2023/01/24 14:19:39 UTC
[GitHub] [superset] villebro commented on pull request #22614: fix: Report screenshot cut off on left and right sides
villebro commented on PR #22614:
URL: https://github.com/apache/superset/pull/22614#issuecomment-1402026874
@lyndsiWilliams I believe this PR has caused a regression for dashboard thumbnails. When rendering dashboard thumbnails, I'm now getting the following timeout error:
```
Caching dashboard: http://localhost:8088/superset/dashboard/10/
Processing url for thumbnail: b59b6650f84da2dfa80e5c6a10ba69bc
Init selenium driver
Selenium timed out requesting url http://localhost:8088/superset/dashboard/10/
Traceback (most recent call last):
File "/Users/ville/apple/apache-superset/superset/utils/webdriver.py", line 177, in get_screenshot
element = WebDriverWait(driver, self._screenshot_locate_wait).until(
File "/Users/ville/apple/apache-superset/venv38/lib/python3.8/site-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
```
In this PR we're assuming that dashboards are always being rendered with the `standalone` flag, but apparently that's only true for alerts & reports. See the logic for dashboard reports (See `standalone` being set to `DashboardStandaloneMode.REPORT.value`):
https://github.com/apache/superset/blob/3e07de7f39a1e6ee9d0db43435ce4a7285003a79/superset/reports/commands/execute.py#L189-L196
Contrast that with dashboard thumbnails (notice the missing `standalone` kwarg): https://github.com/apache/superset/blob/3e07de7f39a1e6ee9d0db43435ce4a7285003a79/superset/tasks/thumbnails.py#L85
It might be a good idea to create a util for generating the chart and dashboard URLs to ensure we're always using the same logic for alerts, reports and thumbs. Thoughts?
--
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