mirror of
https://github.com/apache/superset.git
synced 2026-06-08 09:09:27 +00:00
Prevent FilterBox extra query (#4276)
closes https://github.com/apache/incubator-superset/issues/4249
This commit is contained in:
committed by
GitHub
parent
914480ad3c
commit
b72d5b03dc
@@ -1546,6 +1546,9 @@ class FilterBoxViz(BaseViz):
|
||||
credits = 'a <a href="https://github.com/airbnb/superset">Superset</a> 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 @@ class FilterBoxViz(BaseViz):
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user