feat(workbench): persist operational workflows and events

This commit is contained in:
2026-09-24 04:19:02 +08:00
parent baff7dfe9e
commit 9335bdc1ea
66 changed files with 16580 additions and 238 deletions
@@ -208,9 +208,13 @@ def test_managed_work_orders_and_test_data_persist_revision_and_isolation(sample
priority="high",
assignee="AUTOTEST",
scheduled_at="2026-09-18T01:00:00Z",
work_order_type="water_quality_complaint",
location="AUTOTEST 演示小区",
scenario_code="WQ-SECONDARY-SUPPLY-001",
)
order = store.create_work_order(who, order_command)
WorkOrder.model_validate(order)
assert order["work_order_type"] == "water_quality_complaint"
assert PostgresStore(store.settings).get_work_order(who, order["work_order_id"]) == order
assert store.create_work_order(who, order_command) == order
order = store.update_work_order(who, order["work_order_id"], UpdateWorkOrder(