Flows and dashboards are created by POST under an issued or superuser-pinned id; PUT only updates; deleted flows leave a tombstone with their key; the controller stores by id and runs by key, hooks live under /hooks/<flow id>; a key with state or queued work behind it is refused until cleared
This commit is contained in:
@@ -275,7 +275,9 @@ def test_a_panel_scoped_portal_token_reaches_only_its_panel(
|
||||
assert saved.status_code == 200, saved.text
|
||||
for name in ("kitchen", "bench"):
|
||||
created = client.post(
|
||||
f"{settings.API_V1_STR}/dashboards/{name}", headers=superuser_token_headers
|
||||
f"{settings.API_V1_STR}/dashboards/",
|
||||
headers=superuser_token_headers,
|
||||
json={"id": name, "name": name},
|
||||
)
|
||||
assert created.status_code in (200, 201, 409), created.text
|
||||
# A new dashboard is a draft, and a panel only reaches what is
|
||||
|
||||
Reference in New Issue
Block a user