Skip to content

feat(wes/workflow): fetch workflows from TRS #87

Closed

Description

@uniqueg

Problem

Clients of WES gateways (proWES, elixir-cloud-aai/prowes#121) want to run workflows that are registered in a GA4GH TRS (e.g., trs-filer), by passing a TRS URI as workflow_url. WES doesn't define TRS URIs, so most WES backends can't fetch them. This is needed for the Krini → TRS → WES path of I/O Schema v0.3.

Moved from elixir-cloud-aai/prowes on 2026-11-17: the feature is a reusable wes plugin, not a proWES core feature, so that any gateway for the WES API can use it.

What to do

A plugin of the request phase (group wes, e.g. wes.workflow.trs), so that every backend gets the same request:

  • Recognize workflow_url values that point to a TRS tool version: trs://<host>/<tool id>/<version> and the HTTPS form (https://<host>/ga4gh/trs/v2/tools/{id}/versions/{version_id}).
  • Fetch the primary descriptor and its files for the run's workflow_type (TRS descriptor types CWL, WDL, NFL, SMK, GALAXY) via GET .../{type}/files and GET .../{type}/descriptor/{relative_path}, add them as workflow_attachment, and set workflow_url to the primary descriptor's relative path, as WES defines for attached workflows.
  • Configuration: allowed TRS hosts (empty by default), maximum number and total size of files, timeouts; outbound requests through FOCA's guarded HTTP client (no requests to private addresses unless allowed).
  • Check first that FOCA's wes gateway API lets request plugins add workflow_attachment files; if not, open a FOCA issue and block this one on it.

Done when

  • Unit tests with a fake TRS: CWL and one other type, nested relative paths, size and host limits, unknown tool or version.
  • The README documents the plugin and its configuration.

Origin: elixir-cloud-aai/prowes (formerly prowes#49).

Activity

  1. added
    type: feature
    priority: low
    workload: days
    status: blocked
    on Nov 16, 2026
  2. changed the title [-]feat: support passing TRS URIs[/-] [+]feat(wes/workflow): fetch workflows from TRS[/+] on Nov 17, 2026
  3. added
    status: triage
    and removed
    status: blocked
    on Nov 17, 2026
  4. added
    status: blocked
    and removed
    status: triage
    on Nov 17, 2026
  5. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Nov 17, 2026
  6. self-assigned this
    on Nov 17, 2026
  7. moved this from Backlog to In progress in ELIXIR On-Cloud: Low Priorityon Nov 17, 2026
  8. moved this from In progress to In review in ELIXIR On-Cloud: Low Priorityon Nov 17, 2026
  9. removed
    status: in progress
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: lowtype: featureworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions