Expected Behavior
The command or API call using || in filter should respect the OR operator. For example, on running this command
$ ./tkn-results records list default/results/- --insecure --filter="data_type==TASK_RUN && (data.spec.pipelineSpec.tasks[0].name=='hello'||data.metadata.name=='hell')"
the response should only show TaskRuns that fulfill one or both other conditions.
Actual Behavior
$ ./tkn-results records list default/results/- --insecure --filter="data_type==TASK_RUN && (data.spec.pipelineSpec.tasks[0].name=='hello'||data.metadata.name=='hell')"
Name Type Start Update
default/results/c030918c-b7ff-4fd9-bafb-56487c481aed/records/c030918c-b7ff-4fd9-bafb-56487c481aed tekton.dev/v1beta1.PipelineRun 2023-09-22 19:27:06 +0530 IST 2023-09-22 19:27:31 +0530 IST
It seems the CEL converter is not respecting the () boundary.
Steps to Reproduce the Problem
- Needs Tekton Results installation with some data in database
- Run a command or send an API request involving brackets and operators.
- Observe the response
Additional
Reported by @karthikjeeyar
Expected Behavior
The command or API call using
||in filter should respect the OR operator. For example, on running this commandthe response should only show TaskRuns that fulfill one or both other conditions.
Actual Behavior
It seems the CEL converter is not respecting the
()boundary.Steps to Reproduce the Problem
Additional
Reported by @karthikjeeyar