Include table metadata when calculating applied facets

Still need to ensure facets from metadata cannot be hidden in the UI
This commit is contained in:
Simon Willison 2019-04-18 09:29:43 -07:00
commit 5c198f7ca5
3 changed files with 32 additions and 10 deletions

View file

@ -33,7 +33,7 @@ async def test_column_facet_results(app_client):
database="fixtures",
sql="select * from facetable",
table="facetable",
configs=[{"single": "city_id"}],
configs=[{"simple": "city_id"}],
)
buckets, timed_out = await facet.facet_results()
assert [] == timed_out