The GitHub Actions job "Benchmarks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
2a21b6610c6e51a6bf956f4101571609e5e7d796 / carloea2 <[email protected]>
feat(amber): reject missing hub entity type (#8155)

### What changes were proposed in this PR?

Reject a missing hub entity type with a clear 400 response before table
lookup.

Before: missing entity type -> unhandled match error -> 500
After: missing entity type -> 400 with `Missing entityType`

### Any related issues, documentation, discussions?

Closes #8154

### How was this PR tested?

Added a regression test for the missing value. Existing tests retain
positive coverage for both workflow and dataset table dispatch.

`sbt "WorkflowExecutionService / Test / testOnly
org.apache.texera.web.resource.dashboard.hub.EntityTablesSpec"`

`sbt scalafmtCheckAll`

`sbt "scalafixAll --check"`

Live local checks against the built branch:

| Request | Before | After |
| --- | --- | --- |
| missing `entityType` | 500 | 400 |
| invalid `entityType` | 404 | 404 |
| `entityType=workflow` | 200 | 200 |
| `entityType=dataset` | 200 | 200 |

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Codex

Report URL: https://github.com/apache/texera/actions/runs/33914627448

With regards,
GitHub Actions via GitBox

Reply via email to