guan404ming opened a new pull request, #74070:
URL: https://github.com/apache/airflow/pull/74070

   supersedes: #73444
   related: #73530
   
   ## Why
   
   - TypeScript Dags cannot pick one of several branches yet.
   - ADR-0008 has `switch` take the deciding function, as Go's 
`dag.Switch(pickPath)` does.
   
   ## How
   
   - Add `dag.switch(handler)(inputs).case(a).case(b)`, declaring the decider 
like `dag.if`.
   - Skip every case not chosen; fail the task when the choice is not a case.
   - Make a switch an edge endpoint, like a condition.
   
   Depends on #74069; only the last commit is new here.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes, with help of Claude Code Opus 5.5 following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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