Repository navigation
Description
Description
TES 1.1 adds three filters to GET /tasks: state, and tag_key with
tag_value (arrays, zipped into a map of tags). TESK API doesn't declare
them, and Spring ignores unknown query parameters, so a client asking for
?state=RUNNING or ?tag_key=WORKFLOW_ID&tag_value=cwl-01234 gets all
its tasks, unfiltered (TasksApi.java:127, TasksApiController.java:73-107,
TesServiceImpl.java:265-312).
Tags are only in the task JSON stored as the taskmaster job's annotation,
and the state is computed from the task's jobs, so neither can be a
Kubernetes selector: like name_prefix, both filter each page after
reading it, and pages can be shorter than page_size.
Doesn't depend on #133/#134. If B (states) hasn't landed, add CANCELING
and PREEMPTED to TesState here, so that all TES 1.1 values are accepted.
Expected result
-
stateaccepts everytesStatevalue of TES 1.1; other values give400 Bad Requestnamingstate -
tag_key/tag_valuematch as in the specification's table (empty or missingtag_valuematches any value, also""; a task without the key never matches; all pairs must match) - More
tag_values thantag_keys give400 Bad Request - Filters combine with
name_prefix,page_size,page_tokenand all views; paging behaves as documented forname_prefix - The parameters are in the OpenAPI description (
/v2/api-docs) - Unit and controller tests, incl. the specification's tag match table
-
docs/api.md"Listing tasks" describes both filters and short pages
Activity