carloea2 opened a new pull request, #8134: URL: https://github.com/apache/texera/pull/8134
### What changes were proposed in this PR? Reject a missing `entityType` on the hub count endpoint with a 400 response before selecting an entity table. Add a regression test for the missing parameter while preserving the valid workflow count behavior. Before: missing `entityType` returned 500. After: missing `entityType` returns 400 with `entityType is required`. ### Any related issues, documentation, discussions? Closes #8129 ### How was this PR tested? - `sbt "WorkflowExecutionService / Test / testOnly org.apache.texera.web.resource.dashboard.hub.HubResourceSpec"` - `sbt scalafmtCheckAll` - `sbt "scalafixAll --check"` - Built and launched `texera-web` from this worktree. `GET /api/hub/count` returned 400 with the expected message, and `GET /api/hub/count?entityType=workflow` returned 200. ### 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]
