This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 1fba6f7 [warm] Enforcing consistent form-data (#6531)
1fba6f7 is described below
commit 1fba6f7a174a275cd8ed33367fe4d3932301b9ea
Author: John Bodley <[email protected]>
AuthorDate: Fri Dec 14 14:00:38 2018 +1300
[warm] Enforcing consistent form-data (#6531)
---
superset/views/core.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index 3c0ffa0..08aa7ac 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2049,7 +2049,13 @@ class Superset(BaseSupersetView):
for slc in slices:
try:
- obj = slc.get_viz(force=True)
+ form_data = self.get_form_data(slc.id, use_slice_data=True)[0]
+ obj = self.get_viz(
+ datasource_type=slc.datasource.type,
+ datasource_id=slc.datasource.id,
+ form_data=form_data,
+ force=True,
+ )
obj.get_json()
except Exception as e:
return json_error_response(utils.error_msg_from_exception(e))