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:
@@ -0,0 +1,12 @@
|
||||
"""Store helpers for tests that work below the API."""
|
||||
|
||||
from typing import Any
|
||||
|
||||
|
||||
def created(store: Any, document: Any) -> Any:
|
||||
"""*document* created as a draft, under its key as its id.
|
||||
|
||||
How a store test made one before ids were issued: the id it addresses the
|
||||
object by is the name it gave. Works for flows and dashboards alike.
|
||||
"""
|
||||
return store.create(document, document.name)
|
||||
Reference in New Issue
Block a user