You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2021/01/16 06:14:13 UTC
[superset] branch 1.0 updated: Fix 500 error when loading
dashboards with slice having deleted dataset (#12535)
This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch 1.0
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/1.0 by this push:
new 2187d1a Fix 500 error when loading dashboards with slice having deleted dataset (#12535)
2187d1a is described below
commit 2187d1a40938ca4aff866bd15cd6e4461382acfc
Author: Shuyao Bi <sh...@andrew.cmu.edu>
AuthorDate: Fri Jan 15 14:09:06 2021 -0800
Fix 500 error when loading dashboards with slice having deleted dataset (#12535)
---
superset/models/dashboard.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py
index d3a8363..d7c2a69 100644
--- a/superset/models/dashboard.py
+++ b/superset/models/dashboard.py
@@ -237,6 +237,7 @@ class Dashboard( # pylint: disable=too-many-instance-attributes
# Filter out unneeded fields from the datasource payload
datasource.uid: datasource.data_for_slices(slices)
for datasource, slices in datasource_slices.items()
+ if datasource
},
}