(
id: string,
runId: string,
opts?: {
taskStatus?: FrontendWorkspaceMetadata["taskStatus"];
createdAt?: string;
workflowName?: string;
title?: string;
}
)
| 41 | const parent = createWorkspace("parent"); |
| 42 | |
| 43 | function workflowChild( |
| 44 | id: string, |
| 45 | runId: string, |
| 46 | opts?: { |
| 47 | taskStatus?: FrontendWorkspaceMetadata["taskStatus"]; |
| 48 | createdAt?: string; |
| 49 | workflowName?: string; |
| 50 | title?: string; |
| 51 | } |
| 52 | ): FrontendWorkspaceMetadata { |
| 53 | return createWorkspace(id, { |
| 54 | parentWorkspaceId: "parent", |
| 55 | taskStatus: opts?.taskStatus ?? "running", |
| 56 | createdAt: opts?.createdAt, |
| 57 | title: opts?.title, |
| 58 | workflowTask: { |
| 59 | runId, |
| 60 | stepId: `${id}-step`, |
| 61 | workflowName: opts?.workflowName, |
| 62 | }, |
| 63 | }); |
| 64 | } |
| 65 | |
| 66 | describe("computeSidebarTaskGroups", () => { |
| 67 | test("groups workflow tasks per runId from the first member, separating concurrent runs", () => { |
no test coverage detected