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 serialized on the frontend and validated on the backend.
- Assistant
Implementing recursive TIME_RANGE handling in nested filter groups — it's currently only processed at the top level.
- Assistant
Adding tests for nested conditional groups with TIME_RANGE:
- Assistant
Root cause
When a conditional group is added on the Executions view, the default
timeRangefilter is encoded inside an OR branch (e.g.filters[or][0][timeRange][EQUALS]=PT24H), not at the top level.QueryFilterUtils.replaceTimeRangeWithComputedDateFilter()andTimeLineSearch.extractFrom()only handled flat filter lists. NestedTIME_RANGEfilters were never converted toSTART_DATEbefore repository validation, so validation failed with:Field TIME_RANGE is not supported for resource EXECUTION
Fix
Made filter-tree traversal recursive in:
TimeLineSearch.extractFrom()— discovers / / at any nesting depth.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.