Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Oct 15, 2020

There was a method on the DAG class called sub_dag() that had nothing
to do with Sub-DAGs or the SubDagOperator - It instead created a new
"partial" dag that contained only a selected subset of tasks.

To remove this confusion when seeing dag.sub_dag() used in code I have
renamed this function, and included a compat shim in case anyone is
using it outside of Airflow core.


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

There was a method on the DAG class called `sub_dag()` that had nothing
to do with Sub-DAGs or the SubDagOperator - It instead created a new
"partial" dag that contained only a selected subset of tasks.

To remove this confusion when seeing `dag.sub_dag()` used in code I have
renamed this function, and included a compat shim in case anyone is
using it outside of Airflow core.
@ashb ashb added kind:feature Feature Requests and removed area:CLI labels Oct 15, 2020
@ashb ashb merged commit 1ddeddc into apache:master Oct 15, 2020
@ashb ashb deleted the rename-confusing-partial-dag-method branch October 15, 2020 13:04
kaxil added a commit to astronomer/airflow that referenced this pull request May 31, 2021
This is follow up of apache#11542
to all the missed places in the codebase.
kaxil added a commit that referenced this pull request Jun 1, 2021
This is follow up of #11542
to all the missed places in the codebase.
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 10, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jul 10, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Aug 27, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 4, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
aglipska pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 7, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 7, 2022
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jan 27, 2023
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 12, 2024
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 13, 2024
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2024
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 7, 2024
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 1, 2025
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 22, 2025
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2025
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 16, 2025
This is follow up of apache/airflow#11542
to all the missed places in the codebase.

GitOrigin-RevId: eb85c9d191e452aab596333b9e82d3a9e6428542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:feature Feature Requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants