Skip to content

Commit

Permalink
[bugfix] filter widgets to apply on applicable Slices (#658)
Browse files Browse the repository at this point in the history
Also fixed a white on white issue on hover
  • Loading branch information
mistercrunch authored Jun 22, 2016
1 parent f25e375 commit 8ebe074
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions caravel/assets/visualizations/filter_box.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,17 @@
.dashboard .filter_box .slice_container > div {
padding-top: 0;
}

ul.select2-results li.select2-highlighted div.filter_box{
color: black;
border-width: 1px;
border-style: solid;
border-color: #666;
}

ul.select2-results div.filter_box{
color: black;
border-style: solid;
border-width: 1px;
border-color: transparent;
}
3 changes: 2 additions & 1 deletion caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def query_filters(self, is_having_filter=False):
for slice_filters in extra_filters.values():
for col, vals in slice_filters.items():
if col and vals:
filters += [(col, 'in', ",".join(vals))]
if col in self.datasource.filterable_column_names:
filters += [(col, 'in', ",".join(vals))]
return filters

def query_obj(self):
Expand Down

0 comments on commit 8ebe074

Please sign in to comment.