argoproj / argo-workflows

Workflow Engine for Kubernetes
https://argo-workflows.readthedocs.io/
Apache License 2.0
14.91k stars 3.18k forks source link

API filter by workflow level arguments #13621

Open tooptoop4 opened 1 week ago

tooptoop4 commented 1 week ago

Some workflows (mostly interested in archived ones) have same spec but just different arguments passed into the workflow. Would be good to have filter option in the ui. ie can search for workflows where plant argument = 'fern'

i know there is label search but often labels are not set for every possible argument, and i know the workflow json is available in argo_archived_workflows which has the arguments

agilgur5 commented 1 week ago

This sounds like a really niche feature, as filtering by parameters isn't something most systems have.

I'm inclined to say this is a better use-case for plugins (#6945) than being a core feature as such.

i know the workflow json is available in argo_archived_workflows which has the arguments

And the JSON filter is very inefficient too, per #13295 https://github.com/argoproj/argo-workflows/pull/11121#discussion_r1469101802 et al. None of the existing filters operate on the JSON