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

Fix dag run trigger with a note. #29228

Merged
merged 4 commits into from
Feb 1, 2023
Merged

Conversation

vedantlodha
Copy link
Contributor

This PR allows dag run trigger with a note, which, at the moment gives a 400.
Closes: #28825


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

@vedantlodha vedantlodha force-pushed the issue-28825 branch 4 times, most recently from b72511f to 0c671f5 Compare January 30, 2023 15:12
Copy link
Member

@jedcunningham jedcunningham left a comment

Choose a reason for hiding this comment

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

@vedantlodha, can you add test coverage for this as well? Thanks.

@vedantlodha
Copy link
Contributor Author

Thanks for the suggestion @jedcunningham. Updated the test with latest commit.

@ephraimbuddy ephraimbuddy merged commit b94f36b into apache:main Feb 1, 2023
@jedcunningham jedcunningham added this to the Airflow 2.5.2 milestone Feb 1, 2023
@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Feb 1, 2023
@vedantlodha vedantlodha deleted the issue-28825 branch February 1, 2023 19:45
pierrejeambrun pushed a commit that referenced this pull request Mar 6, 2023
* Fix dag run trigger with a note.

Currently, triggering dag run with note gives 400. This PR fixes it.

Closes: #28825

* make flask_login.current_user a global import

* precommit error fixes.

* add test coverage for the fix

(cherry picked from commit b94f36b)
pierrejeambrun pushed a commit that referenced this pull request Mar 7, 2023
* Fix dag run trigger with a note.

Currently, triggering dag run with note gives 400. This PR fixes it.

Closes: #28825

* make flask_login.current_user a global import

* precommit error fixes.

* add test coverage for the fix

(cherry picked from commit b94f36b)
pierrejeambrun pushed a commit that referenced this pull request Mar 8, 2023
* Fix dag run trigger with a note.

Currently, triggering dag run with note gives 400. This PR fixes it.

Closes: #28825

* make flask_login.current_user a global import

* precommit error fixes.

* add test coverage for the fix

(cherry picked from commit b94f36b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad request when triggering dag run with note in payload
3 participants