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

   supersedes: #73443
   related: #73530
   
   ## Why
   
   - TypeScript Dags cannot branch on a condition yet.
   - #73530 kept ADR-0008's shape, where `if` takes the deciding function, not 
a placed task.
   
   ## How
   
   - Add `dag.if(handler)(inputs).then(a).else(b)`, declaring the condition 
like `dag.task`.
   - Skip the branch not taken, and keep it skipped when it is cleared.
   - Make a condition an edge endpoint, so `task.after(gate)` works as in Go.
   
   Builds on #73443; its first commit is kept as authored.
   
   ---
   
   ##### 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