fix: dashboard endpoint sig changed (#10220)

* fix(thumbnails): dashboard endpoint sig changed

* fix, flask get url for Superset.dashboard

* add simple test
This commit is contained in:
Daniel Vaz Gaspar
2020-07-09 11:42:38 +01:00
committed by GitHub
parent e94c9804a2
commit 6224edd42d
4 changed files with 9 additions and 6 deletions

View File

@@ -530,7 +530,7 @@ def compute_thumbnails(
"Superset.slice", slice_id=model.id, standalone="true"
)
else:
url = get_url_path("Superset.dashboard", dashboard_id=model.id)
url = get_url_path("Superset.dashboard", dashboard_id_or_slug=model.id)
func(url, model.digest, force=force)
if not charts_only: