Untitled conversation
- User
[Filters] Backend do not accept conditional groups
Describe the issue
HTTP 400 is returned at a simple conditional group filter query.
Reproduction
- Navigate to the Executions view
- Add a new conditional group to the default set of filters
- Keep the
ORoperator - Add a new filer - e.g. labels
foo:bar - HTTP 400 response with:
Invalid query filters: Provided query filters are invalid: Field TIME_RANGE is not supported for resource EXECUTION. Supported fields are QUERY, SCOPE, FLOW_ID, START_DATE, END_DATE, STATE, LABELS, TRIGGER_EXECUTION_ID, CHILD_FILTER, NAMESPACE, KIND, PARENT_ID
Environment
- Kestra Version: develop
Interface
No new interfaces are introduced.
- Assistant
Investigating how conditional group filters are sent and validated on the backend.
- Assistant
Implementing recursive TIME_RANGE handling in nested filter groups — the backend only processes it at the top level today.
- Assistant
Adding tests for nested conditional groups with TIME_RANGE:
- Assistant
Root cause
When a conditional group (OR) is added in the Executions filter UI, the default
timeRangefilter moves from flat format:filters[timeRange][EQUALS]=PT168Hto nested format:
filters[or][0][timeRange][EQUALS]=PT168H filters[or][1][labels][EQUALS][foo]=barThe backend's
QueryFilterUtils.replaceTimeRangeWithComputedDateFilter()only processedTIME_RANGEat the top level. Nested filters were left unchanged and then rejected by because is not a supported field for the resource (it's a UI abstraction that must be converted to / first).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.