Skip to content

Commit

Permalink
[warm] Enforcing consistent form-data (apache#6531)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Dec 14, 2018
1 parent 8360905 commit 43a20de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,13 @@ def warm_up_cache(self):

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))
Expand Down

0 comments on commit 43a20de

Please sign in to comment.