-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Sync 3-0-test with 3.0.4 milestone PRs #54343
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
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a1d0c3b
Allow `DEFAULT_QUEUE` to be configurable from airflow settings in Tas…
dabla 743e6ac
Fix task configuration defaults for AbstractOperator (#52871)
kaxil ad87655
Add note about ruff rules and preview flag (#53331)
eladkal 9fd6c3e
Fix broken link in advanced logging config docs (#53460)
r-richmond 9e26810
Update dag bundles docs; add s3, fix git classpath (#53473)
jedcunningham 63387be
Fixed Task group names duplication in Task's task_id for MappedOperat…
evgenii-prusov de52b43
Fix custom xcom backend serialize when BaseXCom.get_all is used (#53814)
amoghrajesh 5935b73
Restore ``get_previous_dagrun`` functionality for task context (#53655)
amoghrajesh b7998a7
Do not ignore `include_prior_dates` in xcom_pull when `map_indexes` i…
amoghrajesh 9fc671c
Allow setting and deleting variables and xcoms from triggers (#53514)
karenbraganz 34b2f13
Fix type error with TIH when reading served log (#54114)
yaming-github File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
airflow-core/src/airflow/api_fastapi/execution_api/versions/v2025_08_10.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from cadwyn import ResponseInfo, VersionChange, convert_response_to_previous_version_for, endpoint, schema | ||
|
|
||
| from airflow.api_fastapi.execution_api.datamodels.taskinstance import DagRun, TIRunContext | ||
| from airflow.api_fastapi.execution_api.routes.xcoms import GetXComSliceFilterParams | ||
|
|
||
|
|
||
| class AddDagRunStateFieldAndPreviousEndpoint(VersionChange): | ||
| """Add the `state` field to DagRun model and `/dag-runs/{dag_id}/previous` endpoint.""" | ||
|
|
||
| description = __doc__ | ||
|
|
||
| instructions_to_migrate_to_previous_version = ( | ||
| schema(DagRun).field("state").didnt_exist, | ||
| endpoint("/dag-runs/{dag_id}/previous", ["GET"]).didnt_exist, | ||
| ) | ||
|
|
||
| @convert_response_to_previous_version_for(TIRunContext) # type: ignore[arg-type] | ||
| def remove_state_from_dag_run(response: ResponseInfo) -> None: # type: ignore[misc] | ||
| """Remove the `state` field from the dag_run object when converting to the previous version.""" | ||
| if "dag_run" in response.body and isinstance(response.body["dag_run"], dict): | ||
| response.body["dag_run"].pop("state", None) | ||
|
|
||
|
|
||
| class AddIncludePriorDatesToGetXComSlice(VersionChange): | ||
| """Add the `include_prior_dates` field to GetXComSliceFilterParams.""" | ||
|
|
||
| description = __doc__ | ||
|
|
||
| instructions_to_migrate_to_previous_version = ( | ||
| schema(GetXComSliceFilterParams).field("include_prior_dates").didnt_exist, | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didnt add changes for #50825, it is a dependent change but for 3.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'm clear, you didn't add the rest of this PR, but you have included the Cadwyn migration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, that PR is entirely excluded. The cadywn migration if from #53655