Skip to content

Conversation

@sunank200
Copy link
Collaborator

@sunank200 sunank200 commented Feb 19, 2025

All the payload validation logic is moved to the Serializer. When the payload is loaded into a TriggerDAGRunPostBody object, it should be valid as is without further validation/manipulation.

This closes: 46650#issuecomment-2654340014


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

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

Do we need to add a test case for validate_context?

@sunank200
Copy link
Collaborator Author

Do we need to add a test case for validate_context?

There is already a test for trigger_dag_run which calls validate_context

@sunank200 sunank200 force-pushed the non-public-run-after branch from a3f6d7d to 1dfaa23 Compare February 20, 2025 05:52
@Lee-W Lee-W merged commit d903d76 into apache:main Feb 20, 2025
45 checks passed
@Lee-W Lee-W deleted the non-public-run-after branch February 20, 2025 06:56
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.

Make run_after non public and move validation logic for the payloas to the Serializer

4 participants