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

extra being passed to SQLalchemy #40391

Merged
merged 1 commit into from
Jun 27, 2024
Merged

extra being passed to SQLalchemy #40391

merged 1 commit into from
Jun 27, 2024

Conversation

aritra24
Copy link
Collaborator

@aritra24 aritra24 commented Jun 23, 2024

The edit prefills an empty extra field (None)
with a empty dictionary, which is decoded
to an extra field being passed in the con url.

Fixes: #40056


^ 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:webserver Webserver related Issues label Jun 23, 2024
@aritra24
Copy link
Collaborator Author

Not entirely sure if this is the place to do the fix, or perhaps while creating the url we check for empty extra here? I guess it would be better to not prefill an empty dict?

airflow/www/views.py Outdated Show resolved Hide resolved
The edit prefills an empty extra field (None)
with a empty dictionary, which is decoded
to an extra field being passed in the con url.
Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

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

No harm here I guess.

@eladkal eladkal added this to the Airflow 2.9.3 milestone Jun 24, 2024
@aritra24
Copy link
Collaborator Author

@uranusjr could you please merge this. I don't have merge rights :p

@eladkal eladkal merged commit a856ed4 into apache:main Jun 27, 2024
49 checks passed
@utkarsharma2 utkarsharma2 added the type:bug-fix Changelog: Bug Fixes label Jul 1, 2024
utkarsharma2 pushed a commit that referenced this pull request Jul 2, 2024
The edit prefills an empty extra field (None)
with a empty dictionary, which is decoded
to an extra field being passed in the con url.

(cherry picked from commit a856ed4)
utkarsharma2 pushed a commit that referenced this pull request Jul 2, 2024
The edit prefills an empty extra field (None)
with a empty dictionary, which is decoded
to an extra field being passed in the con url.

(cherry picked from commit a856ed4)
ephraimbuddy pushed a commit that referenced this pull request Jul 2, 2024
The edit prefills an empty extra field (None)
with a empty dictionary, which is decoded
to an extra field being passed in the con url.

(cherry picked from commit a856ed4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__extra__ being passed to SQLalchemy engine url erroneously
4 participants