Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
8d45d70
feat(wes): check I/O Schemas against the profile
uniqueg Dec 3, 2026
abd7e89
feat(wes): check file reference values
uniqueg Dec 3, 2026
8d98107
feat(wes): render Markdown descriptions safely
uniqueg Dec 3, 2026
21d392a
feat(wes): add the I/O Schema input form
uniqueg Dec 3, 2026
6a40038
fix(wes): harden I/O Schema checks
uniqueg Dec 3, 2026
8be98ef
feat(wes): render the I/O Schema widget hints
uniqueg Dec 3, 2026
c771794
fix(wes): bound the I/O form's field walk
uniqueg Dec 3, 2026
2bba81e
feat(wes): check file reference inputs
uniqueg Dec 3, 2026
70ca407
feat(wes): add error messages, hidden inputs
uniqueg Dec 3, 2026
e340895
feat(wes): edit lists and unions in the I/O form
uniqueg Dec 3, 2026
48d818c
feat(wes): show allOf groups as form sections
uniqueg Dec 3, 2026
cedf572
fix(wes): name I/O form controls and buttons
uniqueg Dec 3, 2026
48fdfbd
fix(wes): check file values by the schema
uniqueg Dec 3, 2026
8f06592
fix(wes): bound and narrow the file value walk
uniqueg Dec 3, 2026
7712c89
feat(wes): translate I/O values to workflow_params
uniqueg Dec 4, 2026
49377ea
feat(wes): add a Conquest engine profile
uniqueg Dec 4, 2026
101e99b
feat(wes): add a schema mode to run-create
uniqueg Dec 4, 2026
3f49d1b
fix(wes): address review of the run request builder
uniqueg Dec 4, 2026
f28c15c
fix(wes): tighten subschema and Conquest checks
uniqueg Dec 4, 2026
abb56bc
feat(wes): normalise run outputs by I/O Schema
uniqueg Dec 4, 2026
20666d0
feat(wes): show run outputs with I/O Schema hints
uniqueg Dec 4, 2026
e817e63
fix(wes): address review of the output view
uniqueg Dec 4, 2026
c24a517
fix(wes): word the unconverted-outputs notice
uniqueg Dec 4, 2026
c3f322f
fix(wes): map the run element's run-id attribute
uniqueg Dec 4, 2026
3a06d71
fix(wes): define the run output element once
uniqueg Dec 5, 2026
f5f59c2
docs(wes): say the output element defines once
uniqueg Dec 5, 2026
a662032
feat(wes): list a run's tasks from task_logs_url
uniqueg Dec 5, 2026
f63ec1d
Merge feat/io-schema into feat/io-run-output-proposal
uniqueg Dec 5, 2026
062a473
test(wes): validate outputs under names with '#'
uniqueg Dec 5, 2026
fe26036
fix(wes): address review of the outputs merge
uniqueg Dec 5, 2026
3467ff4
fix(wes): drop run logs of earlier run IDs
uniqueg Dec 5, 2026
902d2a3
fix(wes): drop run logs when the run ID is cleared
uniqueg Dec 5, 2026
af2e3ea
docs(wes): note property-only run output settings
uniqueg Dec 5, 2026
b692f05
fix(wes): drop run logs on a new provider without ID
uniqueg Dec 5, 2026
edf6ef3
Merge feat/io-run-output-proposal into feat/run-task-logs
uniqueg Dec 5, 2026
78afe0b
test(wes): drop tasks when the run ID is cleared
uniqueg Dec 5, 2026
dda8e41
fix(wes): address review of the task list
uniqueg Dec 5, 2026
8a569fd
fix(wes): drop TaskLog.tags, not in WES 1.1
uniqueg Dec 5, 2026
e9bef1a
Merge feat/io-schema into feat/run-task-logs
uniqueg Dec 5, 2026
e25caa8
fix(wes): retry task listings, load logs on open
uniqueg Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wes-run-tasks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@elixir-cloud/wes": minor
---

`ecc-client-ga4gh-wes-run` lists the tasks of WES 1.1 runs that give only `task_logs_url`, by page, through the provider's new optional `listRunTasks()`, and fetches log URLs through the new optional `getLog()` (`RestWesProvider` implements both). New types `TaskLog` and `TaskListResponse`; `RunLog.task_logs` may now be absent or `null`, so code that reads it needs a fallback. Providers without `getLog()` now fetch logs without credentials: implement `getLog()` to send them.
9 changes: 9 additions & 0 deletions apps/documentation/pages/docs/wes/components/run.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ This example shows the details for a specific workflow run ID.
</Tabs.Tab>
</Tabs>

### Tasks

The Task Logs tab shows the run's tasks:

- the inline `task_logs` of the run log, or, for WES 1.1 servers that give only `task_logs_url` (e.g. Conquest), the tasks listed by the provider's `listRunTasks()` (`GET /runs/{run_id}/tasks`), a page at a time, with a button for the next page (also after an empty page) and one to try again if a listing fails;
- for each task its name, ID, start and end time, exit code, system logs, its TES task (`tes_uri`, a link only if it is an HTTP(S) URL) and its logs, which are fetched when the task is opened.

Log URLs are fetched with the provider's `getLog()` (with `RestWesProvider`: the service's authorization for its own origin, no credentials elsewhere). Providers without `getLog()` fetch them without credentials, also on the page's own origin: implement `getLog()` if your logs need cookies or a token. Log values that aren't URLs are shown as given, with a hint.

### Outputs with an IO schema

Without an IO schema, the Outputs tab shows `RunLog.outputs` as the server reports it. With the workflow's [IO schema](../io-schema) (`ioSchema`), it shows the [normalised outputs](../io-schema#run-outputs) of a run that has ended: each output by its title and description, with its viewer hint (a table, an HTML report in a sandboxed frame) and download, as [`ecc-client-ga4gh-wes-run-output`](./run-output) shows it. Only URIs with a scheme from `allowedSchemes` are fetched or offered for download, through `outputProvider`.
Expand Down
46 changes: 45 additions & 1 deletion apps/documentation/pages/docs/wes/providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export interface WesProvider {
getRunLog(runId: string): Promise<RunLog>;
getRunStatus(runId: string): Promise<RunStatus>;
cancelRun(runId: string): Promise<RunId>;

// Optional (WES 1.1 task listing, log fetching)
listRunTasks?(
runId: string,
pageSize?: number,
pageToken?: string
): Promise<TaskListResponse>;
getLog?(url: string): Promise<string>;
}
```

Expand Down Expand Up @@ -153,6 +161,22 @@ Cancels a running workflow.
cancelRun(runId: string): Promise<RunId>
```

### listRunTasks()

Lists a page of a run's tasks (`GET /runs/{run_id}/tasks`, WES 1.1). Optional in the interface; `ecc-client-ga4gh-wes-run` uses it for runs that give `task_logs_url` instead of `task_logs`. `RestWesProvider` calls the endpoint under its base URL; it doesn't follow `task_logs_url` itself, so the provider's authorization never goes to another address.

```typescript
listRunTasks(runId: string, pageSize?: number, pageToken?: string): Promise<TaskListResponse>
```

### getLog()

Fetches the text of a log URL (`stdout`, `stderr`). Optional in the interface; without it, components fetch logs without credentials. `RestWesProvider` fetches URLs on its base URL's origin through its `fetch` (so a subclass's `Authorization` header goes along), other origins without credentials, and refuses URLs that aren't HTTP(S). A relative base URL is resolved against the page. Redirects are followed: browsers drop `Authorization` and cookies when a redirect leaves the origin, but not other headers, so a subclass that adds its own header (e.g. `X-Api-Key`) should send it only where it belongs, or override `getLog()`.

```typescript
getLog(url: string): Promise<string>
```



## Type Definitions
Expand Down Expand Up @@ -218,6 +242,16 @@ interface Log {
}
```

### TaskLog

```typescript
interface TaskLog extends Log {
id?: string;
system_logs?: string[];
tes_uri?: string;
}
```

### RunLog

```typescript
Expand All @@ -226,11 +260,21 @@ interface RunLog {
request: RunRequest;
state: State;
run_log: Log;
task_logs: Log[];
task_logs?: TaskLog[] | null; // deprecated in WES 1.1
task_logs_url?: string | null; // WES 1.1
outputs: object;
}
```

### TaskListResponse

```typescript
interface TaskListResponse {
task_logs: TaskLog[];
next_page_token?: string;
}
```

### RunListResponse

```typescript
Expand Down
Loading
Loading