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

   ### What changes were proposed in this PR?
   - Added a module-level canonicalize_port_id(port_id) in input_manager that 
defaults a PortIdentity's unset id/internal fields in place (id 0, internal 
False) and returns it.
   - InputManager.add_input_port, InputManager.get_port, 
InputManager.register_input, and OutputManager.add_output_port now call the 
helper instead of repeating the two if-None blocks; behavior, including the 
in-place mutation, is unchanged.
   ### Any related issues, documentation, discussions?
   Closes: #9607
   ### How was this PR tested?
   - Run: cd amber && pytest 
src/test/python/core/architecture/packaging/test_input_manager.py 
src/test/python/core/architecture/packaging/test_output_manager.py (expect all 
green, 70 tests).
   - Existing TestPortIdentityDefaults and TestAddOutputPort still pass 
(behavior preserved through the call sites); new TestCanonicalizePortId checks 
in-place defaulting with identity-preserving return and already-set fields left 
untouched.
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.8 in compliance with ASF
   


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