legend91019 opened a new pull request, #995:
URL: https://github.com/apache/burr/pull/995

   ## Summary
   Fixes #979.
   
   Previously, \Application.step()\ called \_process_inputs()\ before invoking 
\pre_run_step\ hooks (validating required inputs and removing undeclared 
inputs), whereas \Application.astep()\ invoked \pre_run_step\ with the raw, 
unprocessed input dictionary before \_process_inputs()\ was called. This caused:
   1. \pre_run_step\ hooks in \step()\ to receive undeclared inputs that were 
not passed to the action.
   2. \pre_run_step\ hooks in \step()\ to be invoked even when required inputs 
were missing (before validation failed).
   
   This change aligns \Application._astep()\ with \Application._step()\ by:
   - Processing inputs with \_process_inputs(inputs, next_action)\ before 
calling \pre_run_step\.
   - Passing the processed \ction_inputs\ to \pre_run_step\.
   - Ensuring input validation errors (\ValueError\) are raised before 
\pre_run_step\ is called.
   
   ## Changes
   - \urr/core/application.py\: Call \_process_inputs\ prior to invoking 
\pre_run_step\ in \_astep()\.
   - \  ests/core/test_application.py\: Add unit tests \        
est_astep_processes_inputs_before_pre_run_step_hook\ and \      
est_astep_validates_inputs_before_pre_run_step_hook\.
   
   ## Verification
   - Verified 144 unit tests pass in \  ests/core/test_application.py\.
   - Verified 432 unit tests pass across \      ests/core\.


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