mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't execute facets/counts for _shape=array or object, closes #263
This commit is contained in:
parent
a18e8641bc
commit
0539bf0816
2 changed files with 15 additions and 7 deletions
|
|
@ -1692,6 +1692,11 @@ def test_nocount(app_client, nocount, expected_count):
|
|||
assert response.json["filtered_table_rows_count"] == expected_count
|
||||
|
||||
|
||||
def test_nocount_nofacet_if_shape_is_object(app_client):
|
||||
response = app_client.get("/fixtures/facetable.json?_trace=1&_shape=object")
|
||||
assert "count(*)" not in response.text
|
||||
|
||||
|
||||
def test_expand_labels(app_client):
|
||||
response = app_client.get(
|
||||
"/fixtures/facetable.json?_shape=object&_labels=1&_size=2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue