Skip to content

[v3-4-test] TS SDK: Add edge labels with label() (#74494) - #75031

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-777bf9b-v3-4-test
Oct 19, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-777bf9b-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • TS SDK: Add edge labels with label()

  • TS SDK: Tighten label() misuse checks

  • Throw when before() or after() is called on a label, instead of dropping it.
  • Validate label() arguments and reject labels in then/else/case with a hint.
  • Report a label from another SDK copy with the duplicate-copy hint.
  • Omit the label key on unlabelled edges.
  • Test a labelled group-as-upstream edge on an acyclic Dag.

Co-Authored-By: Claude [email protected]

  • Use US spelling of labeled in TS SDK docs

  • TS SDK: Reject misplaced and empty labels, reserve group join IDs

A label() passed as a task input drew no edge and failed later at
serialization, and an empty label replaced an earlier one on the edge.
A task or group could also take a group's join node ID, under which
edge labels at a group end are keyed. label is now in the API docs.

Co-Authored-By: Claude [email protected]


(cherry picked from commit 777bf9b)

Co-authored-by: Guan-Ming Chiu [email protected]
Co-authored-by: ZHE YOU LIU [email protected]
Co-authored-by: Claude [email protected]

* TS SDK: Add edge labels with label()

* TS SDK: Tighten label() misuse checks

- Throw when before() or after() is called on a label, instead of dropping it.
- Validate label() arguments and reject labels in then/else/case with a hint.
- Report a label from another SDK copy with the duplicate-copy hint.
- Omit the label key on unlabelled edges.
- Test a labelled group-as-upstream edge on an acyclic Dag.

Co-Authored-By: Claude <[email protected]>

* Use US spelling of labeled in TS SDK docs

* TS SDK: Reject misplaced and empty labels, reserve group join IDs

A label() passed as a task input drew no edge and failed later at
serialization, and an empty label replaced an earlier one on the edge.
A task or group could also take a group's join node ID, under which
edge labels at a group end are keyed. label is now in the API docs.

Co-Authored-By: Claude <[email protected]>

---------
(cherry picked from commit 777bf9b)

Co-authored-by: Guan-Ming Chiu <[email protected]>
Co-authored-by: ZHE YOU LIU <[email protected]>
Co-authored-by: Claude <[email protected]>
@github-actions github-actions Bot mentioned this pull request Oct 19, 2026
1 task done
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review October 19, 2026 08:21
@vatsrahul1001
vatsrahul1001 merged commit 75b8c05 into v3-4-test Oct 19, 2026
175 checks passed
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.4.0 milestone Oct 19, 2026
@vatsrahul1001
vatsrahul1001 deleted the backport-777bf9b-v3-4-test branch October 19, 2026 09:45
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
* TS SDK: Add edge labels with label()

* TS SDK: Tighten label() misuse checks

- Throw when before() or after() is called on a label, instead of dropping it.
- Validate label() arguments and reject labels in then/else/case with a hint.
- Report a label from another SDK copy with the duplicate-copy hint.
- Omit the label key on unlabelled edges.
- Test a labelled group-as-upstream edge on an acyclic Dag.



* Use US spelling of labeled in TS SDK docs

* TS SDK: Reject misplaced and empty labels, reserve group join IDs

A label() passed as a task input drew no edge and failed later at
serialization, and an empty label replaced an earlier one on the edge.
A task or group could also take a group's join node ID, under which
edge labels at a group end are keyed. label is now in the API docs.



---------
(cherry picked from commit 777bf9b)

Co-authored-by: Guan-Ming Chiu <[email protected]>
Co-authored-by: ZHE YOU LIU <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants