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
|
|
@ -936,7 +936,7 @@ def check_repo(api_base: str, repo_slug: str, repo_path_override: str | None = N
|
|||
# Continue to check drift even with mismatched repo
|
||||
|
||||
tasks = get_tasks_from_workplan(meta, body)
|
||||
db_tasks = _api_get(api_base, "/tasks", {"workstream_id": ws_id})
|
||||
db_tasks = _api_get(api_base, "/tasks", {"workplan_id": ws_id})
|
||||
file_task_statuses = [
|
||||
str(task.get("status", "")).strip()
|
||||
for task in tasks
|
||||
|
|
@ -2046,7 +2046,7 @@ def _write_custodian_brief(api_base: str, repo_slug: str, repo_path: str) -> boo
|
|||
for ws in workstreams:
|
||||
ws_title = ws.get("title", ws.get("slug", "?"))
|
||||
ws_id = ws["id"]
|
||||
tasks = _api_get(api_base, "/tasks", {"workstream_id": ws_id}) or []
|
||||
tasks = _api_get(api_base, "/tasks", {"workplan_id": ws_id}) or []
|
||||
if not isinstance(tasks, list):
|
||||
tasks = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue