STATE-WP-0072: remediate remaining workstream HTTP callers
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 5s

Research sweep captured in research/20260709-workstream-caller-sweep.md.
Migrate dashboard detail tasks query, custodian_cli POST bodies, and
onboarding curl to workplan-first paths; re-capture 8h legacy-meter evidence.
This commit is contained in:
tegwick 2026-07-09 01:48:53 +02:00
parent 3f1eac7bab
commit ef51b99ff5
7 changed files with 228 additions and 12 deletions

View file

@ -293,7 +293,7 @@ def cmd_register(args: argparse.Namespace) -> None:
]
for title, priority, description in tasks:
_api_post("/tasks/", {
"workstream_id": ws_id,
"workplan_id": ws_id,
"title": title,
"priority": priority,
"description": description,
@ -446,9 +446,9 @@ def cmd_create_workstream(args: argparse.Namespace) -> None:
})
_api_post("/progress/", {
"topic_id": topic_id,
"workstream_id": ws["id"],
"event_type": "workstream_created",
"summary": f"Workstream created: {args.title}",
"workplan_id": ws["id"],
"event_type": "workplan_created",
"summary": f"Workplan created: {args.title}",
"author": "custodian",
"detail": {"owner": args.owner, "slug": slug},
})
@ -475,14 +475,14 @@ def cmd_create_task(args: argparse.Namespace) -> None:
workstream_id = match["id"]
task = _api_post("/tasks/", {
"workstream_id": workstream_id,
"workplan_id": workstream_id,
"title": args.title,
"priority": args.priority,
"description": args.description,
"assignee": args.assignee,
})
_api_post("/progress/", {
"workstream_id": workstream_id,
"workplan_id": workstream_id,
"task_id": task["id"],
"event_type": "task_created",
"summary": f"Task created: {args.title}",