carloea2 opened a new pull request, #8146: URL: https://github.com/apache/texera/pull/8146
### What changes were proposed in this PR? Reject negative dashboard search `start` and `count` values before query construction. Add separate regression coverage for each field. Before: negative start returned 500, while negative count returned an inconsistent 200 response. After: either negative value returns 400, and zero remains valid. ### Any related issues, documentation, discussions? Closes #8145 ### How was this PR tested? - `sbt "WorkflowExecutionService / Test / testOnly org.apache.texera.web.resource.dashboard.DashboardResourceSpec"` - `sbt scalafmtCheckAll` - `sbt "scalafixAll --check"` - Built with `bin/local-dev.sh up texera-web --build --json` and ran the generated distribution on localhost. - Verified `start=-1` and `count=-1` return 400, while `start=0&count=0` still returns 200 with `more=false`. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
