carloea2 opened a new pull request, #8155:
URL: https://github.com/apache/texera/pull/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


-- 
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]

Reply via email to