Repository navigation
Closed
Labels
priority: highHigh prioritytype flag: spec changeProposed change requires spec changestype: featureNew feature or requestworkload: daysLikely takes days to resolve
Description
Problem
Owners and admins can't see which plugins changed a task, which
backends were tried and why they failed. proTES records only the
backend chain, in tesTaskLog.metadata.forwarded_to, an array of
objects in a string map, which isn't TES-compliant (strict generated
clients may fail on it).
Proposal
- Endpoint
GET /ga4gh/tes/v1/tasks/{id}/provenance(proTES
extension inapi/additions.openapi.yaml): the task'sprovenance
document (stored since T1), with theplugin_buildsandpipelines
references expanded; owners and admins only, with the same ownership
rules and404behaviour asGET /tasks/{id}. Tasks created before
T1 have none (404with a clear detail, or an empty document: see
open questions). - Normalisation: collections
plugin_buildsandpipelinesin the
task DB (indexes inconfig.yaml), filled with FOCA's helpers
(); client pipelines stay inline in the task document. - Gateway tags (FOCA ): at creation
gateway.pipeline_hash,
gateway.pipeline_source,gateway.plugins,gateway.provenance;
with the backend updategateway.backend,gateway.backend_task_id,
gateway.forwarded_at,gateway.attempts,gateway.route
(gateway.route_truncated). Served in theBASICandFULLviews. forwarded_todeprecated: still written and served in this
release, markeddeprecated: trueinadditions.openapi.yaml
(tesForward), in the docs and in the release notes, pointing to the
tags; removed in T5. The tracker keeps readingforwarded_to.idand
remote_task_idof stored tasks.- Docs: API page (endpoint, tags, deprecation), access control
(who sees provenance), operations (GDPR notes: no new personal data,
retention with the task,record_failed).
Acceptance criteria
- Owners and admins get the provenance of a task; others
404. - New tasks carry the
gateway.*tags inBASIC/FULL; the
relayed task carries none. -
forwarded_tois still served and marked deprecated. - Tests for the endpoint, tags, deprecation flag; 100% coverage.
Dependencies
- Blocked by T1 (refactor!: run task plugins with FOCA #321) and FOCA , , (FOCA
v0.18.0). - Blocks: T5 (feat!: stop serving forwarded_to #324).
Open questions
- Tasks without provenance (created before T1):
404with detail "no
provenance recorded" (chosen, consistent with "served as absent") or
200with an empty document?
Metadata
Metadata
Assignees
Labels
priority: highHigh prioritytype flag: spec changeProposed change requires spec changestype: featureNew feature or requestworkload: daysLikely takes days to resolve
Activity