VuMartin opened a new pull request, #8398:
URL: https://github.com/apache/texera/pull/8398

   ### What changes were proposed in this PR?
   
   Return `404 Not Found` when the workflow type endpoint is requested for a 
workflow that does not exist. Previously, `getWorkflowType` dereferenced a null 
DAO result and returned `500 Internal Server Error`.
   
   Before:
   <img width="2690" height="202" alt="image" 
src="https://github.com/user-attachments/assets/23e711f9-47a4-43f3-8b83-2d8e8d18e375";
 />
   
   After:
   <img width="2690" height="230" alt="image" 
src="https://github.com/user-attachments/assets/189d5398-4fa6-4112-95d2-c26c59b0f2de";
 />
   
   ### Any related issues, documentation, discussions?
   
   Closes #8300
   
   ### How was this PR tested?
   
   - Ran `WorkflowResourceSpec`
   - Verified `GET /api/workflow/type/2147483647` returns `404` instead of `500`
   - Added regression coverage for a missing workflow type
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: ChatGPT (5.5 mini)
   


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