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

   ### What changes were proposed in this PR?
   
   Guard ModifyLogicRequest handling when a workflow exists but its execution 
has not been initialized.
   
   Before: the handler dereferenced a null execution service and raised a 
NullPointerException.
   
   After: the handler raises a clear IllegalStateException and sends a 
WorkflowErrorEvent.
   
   ### Any related issues, documentation, discussions?
   
   Closes #8094
   
   ### How was this PR tested?
   
   A regression test was added first. It reproduced the bug with 15 tests 
passing and 1 failing. After the fix, all 16 tests pass.
   
   ```
   sbt "set DAO / Compile / sourceGenerators := Seq.empty" 
"WorkflowExecutionService / Test / testOnly 
org.apache.texera.web.resource.WorkflowWebsocketResourceSpec"
   sbt "set DAO / Compile / sourceGenerators := Seq.empty" "scalafixAll --check"
   sbt scalafmtCheckAll
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex, GPT-5


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