mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(plugin-chart-echarts): Apply temporary filters to Query B in explore (#18998)
* fix(explore): Extra filters not applied to query b in mixed timeseries * Add return type * Apply review comment * Fix non-dnd filters
This commit is contained in:
committed by
GitHub
parent
5a5ff99c37
commit
9f834e8317
@@ -1081,11 +1081,13 @@ def merge_extra_form_data(form_data: Dict[str, Any]) -> None:
|
||||
{"isExtra": True, **fltr} for fltr in append_adhoc_filters # type: ignore
|
||||
)
|
||||
if append_filters:
|
||||
adhoc_filters.extend(
|
||||
simple_filter_to_adhoc({"isExtra": True, **fltr}) # type: ignore
|
||||
for fltr in append_filters
|
||||
if fltr
|
||||
)
|
||||
for key, value in form_data.items():
|
||||
if re.match("adhoc_filter.*", key):
|
||||
value.extend(
|
||||
simple_filter_to_adhoc({"isExtra": True, **fltr}) # type: ignore
|
||||
for fltr in append_filters
|
||||
if fltr
|
||||
)
|
||||
|
||||
|
||||
def merge_extra_filters(form_data: Dict[str, Any]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user