From e1756a283a46e411639de0720687ade3c81a9865 Mon Sep 17 00:00:00 2001 From: Brian Greunke Date: Mon, 5 May 2025 19:11:28 -0500 Subject: [PATCH] fix: switched API client routes to full routes - summary routes were missing some required attributes - routes are intended and include additional details --- dreadnode/api/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dreadnode/api/client.py b/dreadnode/api/client.py index 1f512c4c..1ce0e388 100644 --- a/dreadnode/api/client.py +++ b/dreadnode/api/client.py @@ -128,11 +128,11 @@ def get_run(self, run: str | ULID) -> Run: return Run(**response.json()) def get_run_tasks(self, run: str | ULID) -> list[Task]: - response = self.request("GET", f"/strikes/projects/runs/{run!s}/tasks") + response = self.request("GET", f"/strikes/projects/runs/{run!s}/tasks/full") return [Task(**task) for task in response.json()] def get_run_trace(self, run: str | ULID) -> list[Task | TraceSpan]: - response = self.request("GET", f"/strikes/projects/runs/{run!s}/spans") + response = self.request("GET", f"/strikes/projects/runs/{run!s}/spans/full") spans: list[Task | TraceSpan] = [] for item in response.json(): if "parent_task_span_id" in item: