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

   ### What changes were proposed in this PR?
   
   Adds 
`src/app/dashboard/service/user/workflow-to-python/workflow-to-python.service.spec.ts`,
 the first spec for `WorkflowToPythonService`. No production-code changes.
   
   | Covered | Cases |
   | --- | --- |
   | request | one POST to `workflow-to-python` with `Content-Type: 
application/json` |
   | body | the plan's `operators` and `links`, with empty `opsToReuseResult` / 
`opsToViewResult`; the plan's own lists are never forwarded and no other keys 
are sent |
   | empty plan | still posts |
   | success | `pythonCode`, `helpersModule`, `renamedSources` reach the 
subscriber as returned |
   | failure body | `{ type: "failure" }` is a value, not an error |
   | HTTP error | a 500 reaches the error callback |
   
   ### Any related issues, documentation, discussions?
   
   Closes #9662.
   
   ### How was this PR tested?
   
   The new spec is the test. It runs green (6 tests), and the file passes 
prettier and eslint.
   
   ```
   cd frontend
   ng test --watch=false --include 
src/app/dashboard/service/user/workflow-to-python/workflow-to-python.service.spec.ts
   npx prettier --check 
src/app/dashboard/service/user/workflow-to-python/workflow-to-python.service.spec.ts
   npx eslint 
src/app/dashboard/service/user/workflow-to-python/workflow-to-python.service.spec.ts
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5.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