-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Add is_mapped field to Task response. #23319
Conversation
@@ -58,6 +58,7 @@ class TaskSchema(Schema): | |||
sub_dag = fields.Nested(DAGSchema, dump_only=True) | |||
downstream_task_ids = fields.List(fields.String(), dump_only=True) | |||
params = fields.Method('get_params', dump_only=True) | |||
is_mapped = fields.Boolean(dump_only=True) |
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.
Adding a field to the schema also requires adding it to the API definition in airflow/api_connexion/openapi/v1.yaml
(line 2,938 onwards), so that it shows up in the docs.
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.
Thanks, I though it was automatically generated. Added now.
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.
Other than the YAML update I mentioned it would be nice if one of the results in TestGetTasks
contained a mapped task, just for the sake of completeness.
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
* Add is_mapped field to Task response. * Add is_mapped to schema file and add test for GetTasks. (cherry picked from commit f3d80c2)
closes: #23284
related: #23284