Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update chain() and cross_downstream() to support XComArgs #16732

Merged
merged 13 commits into from
Jul 14, 2021

Conversation

josh-fell
Copy link
Contributor

@josh-fell josh-fell commented Jun 30, 2021

  • Added support for XComArgs in chain() helper function
  • Updated type annotations for XComArg in cross_downstream() helper function
  • Added additional tests in test_baseoperator.py

Closes: #16635


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

- Added support for `XComArgs` in `chain()` helper function
- Updated type annotations for `XComArg` in `cross_downstream()` helper function
airflow/models/baseoperator.py Outdated Show resolved Hide resolved
airflow/models/baseoperator.py Outdated Show resolved Hide resolved
airflow/models/baseoperator.py Outdated Show resolved Hide resolved
tests/dags/test_chain_xcomargs.py Outdated Show resolved Hide resolved
@josh-fell josh-fell requested a review from ashb July 1, 2021 14:27
@uranusjr
Copy link
Member

uranusjr commented Jul 2, 2021

Should an examples be added to the documentation/docstring as well?

@josh-fell
Copy link
Contributor Author

Should an examples be added to the documentation/docstring as well?

Great idea. I'll expand the examples in the docstrings for chain() and cross_downstream().

Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, overally awesome stuff 😄

airflow/models/baseoperator.py Outdated Show resolved Hide resolved
@josh-fell josh-fell requested a review from uranusjr July 6, 2021 02:17
airflow/models/baseoperator.py Outdated Show resolved Hide resolved
@josh-fell josh-fell requested review from ashb and uranusjr July 7, 2021 16:25
airflow/models/baseoperator.py Outdated Show resolved Hide resolved
airflow/models/baseoperator.py Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Jul 8, 2021

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Jul 8, 2021
@ashb ashb removed the full tests needed We need to run full set of tests for this PR to merge label Jul 9, 2021
@uranusjr uranusjr changed the title Update chain() and cross_downstream() to support XComArgs Update chain() and cross_downstream() to support XComArgs Jul 14, 2021
@uranusjr uranusjr merged commit 7529546 into apache:main Jul 14, 2021
@josh-fell josh-fell deleted the chain-with-xcomargs branch July 14, 2021 13:21
josh-fell added a commit to josh-fell/airflow that referenced this pull request Jul 19, 2021
Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update airflow.models.baseoperator.chain() function to support XComArgs
3 participants