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 path and its tests first. Success means conditional groups accept the default execution time-range filter without weakening field validation elsewhere, with a focused regression test and the relevant Gradle tests passing. My working assumption is that the nested-group validator is checking UI-level
TIME_RANGEbefore the normal execution-filter conversion expands it to start/end dates. - Assistant
rgisn’t installed in this checkout, so I’m using targetedgit grepsearches instead. I’m also checking the current worktree state before editing so any unrelated local changes remain untouched. - Assistant
The failure is confirmed: validation itself correctly walks conditional groups, but the execution preprocessor only resolves
TIME_RANGEat the top level. AddingTIME_RANGEto the repository’s supported fields would mask the inconsistency and bypass the established date-mode rewrite, so I’m keeping the existing contract and making both time-range discovery and replacement recursive while preserving the group structure. - Assistant
The recursive rewrite is in place and the focused utility regression test is running. It verifies the original
OR(timeRange, labels)shape remains anOR,TIME_RANGEbecomes the execution-supported date field, and repository validation then accepts the full tree. - Assistant
Gradle is still in its silent configuration/compilation phase; there’s no failure output yet. While it runs, I’m keeping the change limited to the webserver preprocessing path—core resource validation and JDBC behavior remain unchanged.
- Assistant
The test process remains active but unusually quiet. I’ll let this first repository build finish rather than restart it and lose its compilation work; if it fails, I’ll use the generated failure report and address the concrete error.
- Assistant
The first daemon was unresponsive, so I stopped it cleanly and restarted the same focused test in a single-use daemon. The replacement build is actively consuming CPU now, indicating compilation/configuration is progressing.
- Assistant
The single-use build is still active and has not emitted errors. This repository’s initial Gradle configuration is taking most of the time; no additional code changes are needed while it completes.
- Assistant
I found the delay: Gradle is attempting remote plugin metadata resolution, which is outside this task’s offline constraint and is timing out. I’m stopping that attempt and rerunning in offline mode against the local dependency cache; this will either execute the test or report the exact missing cached artifact promptly.
- Assistant
Offline compilation now passes for the changed webserver code. The focused test task cannot be configured offline because
mockito-core:5.23.0is not present in the local cache. I’m strengthening the regression assertion before the final check so it verifies the nestedPT24Hvalue is actually honored, not merely replaced by the fallback eight-day boundary. - Assistant
The full webserver test sources, including the new regression, compile successfully offline. The only blocker to executing JUnit is the dedicated Mockito Java-agent configuration requesting uncached 5.23.0 while 5.20.0 is cached; I’ll use a temporary Gradle init override for that test process only, without changing repository build files.
- Assistant
JUnit execution reaches the test task now, but the offline runtime classpath has three more uncached transitive artifacts (
junit-platform-launcher,json-smart, andobjenesis). Since test compilation is already clean, I’m doing a direct JVM smoke check of the exact regression path with the compiled classes, then I’ll remove the temporary build override and review the final diff.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.