Repository navigation
Closed
Labels
priority: lowLow prioritytype: featureNew feature or requestworkload: daysLikely takes days to resolve
Description
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_urlvalues 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 typesCWL,WDL,NFL,SMK,GALAXY) viaGET .../{type}/filesandGET .../{type}/descriptor/{relative_path}, add them asworkflow_attachment, and setworkflow_urlto 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
wesgateway API letsrequestplugins addworkflow_attachmentfiles; 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).
Metadata
Metadata
Assignees
Labels
priority: lowLow prioritytype: featureNew feature or requestworkload: daysLikely takes days to resolve
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]feat: support passing TRS URIs[/-][+]feat(wes/workflow): fetch workflows from TRS[/+]docs(wes/workflow/trs): add PR number to changelog
fix(wes/workflow/trs): bound responses in total