mirror of
https://github.com/simonw/datasette.git
synced 2026-10-07 18:06:59 +02:00
Convert /-/actions.json from top-level array to object
/-/actions.json now returns {"ok": true, "actions": [...]} instead of a
bare JSON array, so the response can grow additional keys without a
breaking change. The debug_actions.html template reads data.actions,
and the endpoint is now documented in docs/introspection.rst.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
19e54b10d4
commit
23ccdaeffc
7 changed files with 56 additions and 18 deletions
|
|
@ -579,7 +579,7 @@ async def test_actions_json(ds_client):
|
|||
try:
|
||||
ds_client.ds.root_enabled = True
|
||||
response = await ds_client.get("/-/actions.json", actor={"id": "root"})
|
||||
data = response.json()
|
||||
data = response.json()["actions"]
|
||||
finally:
|
||||
ds_client.ds.root_enabled = original_root_enabled
|
||||
assert isinstance(data, list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue