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 to the backend and why
TIME_RANGEis rejected for executions. - Assistant
Implementing recursive handling for
TIME_RANGEin nested filter groups — the backend only processed top-level filters. - Assistant
Fixed. The backend rejected conditional-group filter queries because
TIME_RANGEwas only resolved at the top level.Root cause
When a conditional group is added in the Executions view, the default
timeRangefilter is encoded inside nested URL prefixes, e.g.:codefilters[or][0][or][0][timeRange][EQUALS]=PT24H filters[or][0][or][1][labels][EQUALS][foo]=barTIME_RANGEis a virtual field that must be converted toSTART_DATE/END_DATEbefore validation.QueryFilterUtils.replaceTimeRangeWithComputedDateFilter()andTimeLineSearch.extractFrom()only walked top-level filters, so nestedTIME_RANGEvalues reachedQueryFilter.validateQueryFilters()unchanged and failed with HTTP 400.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.