Skip to content

Commit

Permalink
config change reverted. thumbnails sizes changed to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Ercan committed Feb 18, 2021
1 parent 2909ab4 commit 24d3efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ class CeleryConfig: # pylint: disable=too-few-public-methods
WEBDRIVER_TYPE = "firefox"

# Window size - this will impact the rendering of the data
WEBDRIVER_WINDOW = {"dashboard": (1600, 3000), "slice": (1280, 960)}
WEBDRIVER_WINDOW = {"dashboard": (1600, 2000), "slice": (3000, 1200)}

# An optional override to the default auth hook used to provide auth to the
# offline webdriver
Expand Down
4 changes: 2 additions & 2 deletions superset/tasks/thumbnails.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def cache_chart_thumbnail(
logger.warning("No cache set, refusing to compute")
return None
logger.info("Caching chart: %s", url)
screenshot = ChartScreenshot(url, digest)
screenshot = ChartScreenshot(url, digest, (800, 600), (800, 600))
with session_scope(nullpool=True) as session:
user = security_manager.get_user_by_username(
current_app.config["THUMBNAIL_SELENIUM_USER"], session=session
Expand All @@ -68,7 +68,7 @@ def cache_dashboard_thumbnail(
logging.warning("No cache set, refusing to compute")
return
logger.info("Caching dashboard: %s", url)
screenshot = DashboardScreenshot(url, digest)
screenshot = DashboardScreenshot(url, digest, (1600, 1200), (1600, 1200))
with session_scope(nullpool=True) as session:
user = security_manager.get_user_by_username(
current_app.config["THUMBNAIL_SELENIUM_USER"], session=session
Expand Down

0 comments on commit 24d3efb

Please sign in to comment.