Skip to content

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.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Jan 30, 2023
@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