Finish STATE-WP-0069: retire legacy completion event and DELETE /workstreams
Stop dual-publishing org.statehub.workstream.completed; return 410 Gone for
legacy DELETE /workstreams/{id}. Migrate fix-consistency, MCP adhoc bootstrap,
and dashboard token summary to /workplans/. Add legacy-meter evidence capture
script and pytest snapshot; update docs and close out the workplan.
This commit is contained in:
parent
b659ff8d13
commit
e0c954d098
13 changed files with 404 additions and 149 deletions
|
|
@ -2927,9 +2927,9 @@ def _ensure_adhoc_workplan(
|
|||
wp_file = workplans_dir / f"{adhoc_id}.md"
|
||||
|
||||
ws_id = _read_adhoc_workstream_id(wp_file)
|
||||
ws = _get(f"/workstreams/{ws_id}") if ws_id else None
|
||||
ws = _get(f"/workplans/{ws_id}") if ws_id else None
|
||||
if not isinstance(ws, dict) or "error" in ws:
|
||||
existing = _get("/workstreams/", {"slug": ws_slug})
|
||||
existing = _get("/workplans/", {"slug": ws_slug})
|
||||
ws = existing[0] if isinstance(existing, list) and existing else None
|
||||
|
||||
if not ws:
|
||||
|
|
@ -2941,7 +2941,7 @@ def _ensure_adhoc_workplan(
|
|||
)
|
||||
if not topic:
|
||||
return {"error": f"No topic found for domain {domain_slug!r} — cannot create adhoc workstream."}
|
||||
ws = _post("/workstreams", {
|
||||
ws = _post("/workplans", {
|
||||
"topic_id": topic["id"],
|
||||
"slug": ws_slug,
|
||||
"title": f"Ad Hoc Tasks — {today}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue