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
I’ll trace the execution filter DTO/validation and its conditional-group serialization first. Success means the grouped default time-range filter is accepted without weakening validation for genuinely unsupported fields, with a focused regression test and the relevant module tests passing. I’ll favor fixing the backend’s field mapping/validation boundary over special-casing the UI payload.
- Assistant
rgisn’t installed in this checkout, so I’m switching to a scoped recursive search. The likely mismatch is that top-level execution filters expandTIME_RANGEbefore validation, while nestedCHILD_FILTERentries are validated directly. I’ll verify that before editing. - Assistant
The failure is confirmed: conditional groups are already parsed, validated, and translated to SQL recursively, but the execution-specific
TIME_RANGE → START_DATE/END_DATEpreprocessing only visits root filters. AddingTIME_RANGEto the execution allowlist would merely defer the failure to JDBC, where it is intentionally unsupported.I’ll make the existing preprocessing tree-aware while preserving group structure and current default-date behavior. The focused regression will use an
ORnode containingTIME_RANGEandLABELS, then verify no unsupported field reaches repository validation. - Assistant
The recursive rewrite and regression test are in place. I’m running the focused webserver test now; afterward I’ll add/execute an HTTP-level reproduction if the test fixture supports the exact nested query without introducing unrelated integration setup.
- Assistant
The focused Gradle task is still compiling the module graph and has not reported failures. While it runs, I’ve checked the diff for whitespace issues; it is clean. The change remains limited to the date-filter preprocessing and one regression test.
- Assistant
Gradle’s configuration phase attempted to resolve a missing build plugin remotely. Since this task must stay offline, I’m stopping that run and will rerun with Gradle’s offline mode; this will either use the local cache or clearly identify the unavailable dependency.
- Assistant
Offline verification exposed an environment limitation:
mockito-core:5.23.0is not cached, so Gradle cannot even create the webserver test task. I’ll still run offline production/test compilation targets where possible, and inspect the HTTP regression for type correctness independently; I won’t enable network resolution. - Assistant
Test classes compile successfully offline. The only runtime blocker is the build’s dedicated Mockito Java agent pin (
5.23.0), while the local cache contains5.20.0. I’ll use a temporary Gradle init override for verification only, pointing that agent configuration at the cached version; repository dependencies remain unchanged. - Assistant
Production and test sources now compile successfully offline. Full JUnit execution remains unavailable because several runtime-only artifacts (JUnit launcher, JaCoCo agent, and transitive test libraries) are absent from the local cache, but an offline executable regression harness passed the nested
OR(timeRange, labels)rewrite and execution-resource validation. I’m doing the final diff review now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.