From eb021a4f54c562354a582bd02ff399b2f99751dc Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 23 Jan 2018 21:14:12 -0800 Subject: [PATCH] Prevent FilterBox extra query closes https://github.com/apache/incubator-superset/issues/4249 --- superset/viz.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset/viz.py b/superset/viz.py index bb0bcf604de7c..27eac63dd4155 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1546,6 +1546,9 @@ class FilterBoxViz(BaseViz): credits = 'a Superset original' def query_obj(self): + return None + + def filter_query_obj(self): qry = super(FilterBoxViz, self).query_obj() groupby = self.form_data.get('groupby') if len(groupby) < 1 and not self.form_data.get('date_filter'): @@ -1555,7 +1558,7 @@ def query_obj(self): return qry def get_data(self, df): - qry = self.query_obj() + qry = self.filter_query_obj() filters = [g for g in self.form_data['groupby']] d = {} for flt in filters: