Skip to content

Commit

Permalink
fix: apply url_params in global async query
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Feb 24, 2022
1 parent 9d5c050 commit c0e10f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/charts/data/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def data_from_cache(self, cache_key: str) -> Response:
"""
try:
cached_data = self._load_query_context_form_from_cache(cache_key)
# In order to get `url_params` in form_data(used for async queries)
setattr(g, "form_data", cached_data)
query_context = self._create_query_context_from_form(cached_data)
command = ChartDataCommand(query_context)
command.validate()
Expand Down

0 comments on commit c0e10f6

Please sign in to comment.