Migrate remaining in-repo workstream REST callers to /workplans
Point cleanup_stale_tasks, validate_repo_adr, custodian_cli, dashboard data loaders, extensions poll, MCP legacy resource, and consistency_check task queries at preferred /workplans routes. Add caller inventory evidence doc.
This commit is contained in:
parent
050cbbceb9
commit
b05ca2ca8c
10 changed files with 66 additions and 16 deletions
|
|
@ -339,7 +339,7 @@ def check_api(api_base: str, metas: list[dict], domain_slug: str | None,
|
|||
file_ws_ids.add(ws_id)
|
||||
if meta.get("_active_file", True):
|
||||
active_file_ws_ids.add(ws_id)
|
||||
ws = _api_get(api_base, f"/workstreams/{ws_id}")
|
||||
ws = _api_get(api_base, f"/workplans/{ws_id}")
|
||||
if ws is None:
|
||||
report.add(Level.FAIL, "workstream-ref-exists",
|
||||
f"state_hub_workstream_id {ws_id} not found in DB (stale reference)",
|
||||
|
|
@ -373,7 +373,7 @@ def check_api(api_base: str, metas: list[dict], domain_slug: str | None,
|
|||
if t_domain not in domains_to_check:
|
||||
continue
|
||||
t_id = topic["id"]
|
||||
workstreams = _api_get(api_base, "/workstreams", {"topic_id": t_id})
|
||||
workstreams = _api_get(api_base, "/workplans", {"topic_id": t_id})
|
||||
if not isinstance(workstreams, list):
|
||||
report.add(Level.WARN, "orphan-detection",
|
||||
f"Could not fetch workstreams for topic {t_id[:8]}… (domain={t_domain})")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue