From 9bc16c197cfb48ff8031c861682fd0c7ca467002 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Fri, 27 Sep 2024 13:12:48 -0500 Subject: [PATCH] fix(metrics): restore extra filter per query --- .../aspects/apps/superset/pythonpath/performance_metrics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/performance_metrics.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/performance_metrics.py index c190dc831..ba681a3a7 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/performance_metrics.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/performance_metrics.py @@ -174,6 +174,10 @@ def get_slice_query_context(slice, query_contexts, extra_filters=None): "filters": extra_filters } + if extra_filters: + for query in query_context["queries"]: + query["filters"] += extra_filters + return query_context