-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Superset 3.1.3: Long Dashboards render blank thumbnails unless Dashboard length is reduced #29326
Comments
To resolve the issue in Apache Superset version 3.1.3 where long dashboards render blank thumbnails, you can modify the Here is the relevant part of the useEffect(() => {
// fetch thumbnail only if it's not already fetched
if (
!fetchingThumbnail &&
dashboard.id &&
(thumbnailUrl === undefined || thumbnailUrl === null) &&
isFeatureEnabled(FeatureFlag.Thumbnails)
) {
// fetch thumbnail
if (dashboard.thumbnail_url) {
// set to empty string if null so that we don't
// keep fetching the thumbnail
setThumbnailUrl(dashboard.thumbnail_url || '');
return;
}
setFetchingThumbnail(true);
SupersetClient.get({
endpoint: `/api/v1/dashboard/${dashboard.id}`,
}).then(({ json = {} }) => {
setThumbnailUrl(json.thumbnail_url || '');
setFetchingThumbnail(false);
});
}
}, [dashboard, thumbnailUrl]); Ensure that the Additionally, make sure that the cover={
!isFeatureEnabled(FeatureFlag.Thumbnails) || !showThumbnails ? (
<></>
) : null
} This ensures that the component does not attempt to render a thumbnail if the feature is disabled or if thumbnails are not to be shown [1]. By making these adjustments, you should be able to resolve the issue with blank thumbnails for long dashboards. |
@dosu |
To address the issue where long dashboards render blank thumbnails in Apache Superset version 3.1.3, you can try the following steps:
By following these steps, you should be able to resolve the issue with blank thumbnails for long dashboards [1][2]. |
Is anyone here still facing this in 4.1.1 or newer? It's been quiet here for a long time. |
Bug description
We have several dashboards that render their thumbnails properly. For some, Playwright would only render the background of the dashboard and not the charts (we have color backgrounds using CSS for some)
When I reduce the height of charts to fit them in less than 3 page down scrolls, the thumbnail works fine, but if the length exceeds a certain amount, a blank thumbnail is rendered.
How to reproduce the bug
Dockerfile:
The dashboard should render a blank thumbnail:

Now remove rows from the dashboard to reduce its height or resize elements to fit them in a shorter height, the thumbnail is rendered fine:

Screenshots/recordings
No response
Superset version
3.1.3
Python version
Not applicable
Node version
Not applicable
Browser
Not applicable
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: