mirror of
https://github.com/simonw/datasette.git
synced 2026-07-16 20:44:35 +02:00
Remove the next_url extra - the key is always present
next_url became a default table JSON key alongside next, making the extra a no-op. Requesting ?_extra=next_url now returns the standard unknown-extra 400 error. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
8b159144a5
commit
4874c29286
7 changed files with 23 additions and 43 deletions
|
|
@ -739,3 +739,11 @@ async def test_sql_interrupted_html_page_keeps_rich_error(ds_client):
|
|||
)
|
||||
assert response.status_code == 400
|
||||
assert "<textarea" in response.text
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_next_url_extra_no_longer_exists(ds_client):
|
||||
# next_url is always present in table JSON; the extra was removed
|
||||
response = await ds_client.get("/fixtures/facetable.json?_extra=next_url")
|
||||
data = assert_canonical_error(response, 400)
|
||||
assert data["errors"] == ["Unknown _extra: next_url"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue