Facets now execute ignoring ?_col and ?_nocol, fixes #1345

This commit is contained in:
Simon Willison 2021-05-30 22:31:14 -04:00
commit f7d3e76fb3
2 changed files with 37 additions and 8 deletions

View file

@ -2041,6 +2041,21 @@ def test_http_options_request(app_client):
"/fixtures/facetable.json?_col=state&_col=created&_nocol=created",
["pk", "state"],
),
(
# Ensure faceting doesn't break, https://github.com/simonw/datasette/issues/1345
"/fixtures/facetable.json?_nocol=state&_facet=state",
[
"pk",
"created",
"planet_int",
"on_earth",
"city_id",
"neighborhood",
"tags",
"complex_array",
"distinct_some_null",
],
),
(
"/fixtures/simple_view.json?_nocol=content",
["upper_content"],