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(providers/mongo): prevent applying lower method on bool field #43024

Conversation

josix
Copy link
Contributor

@josix josix commented Oct 15, 2024

Fixes #42930


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

@josix josix marked this pull request as draft October 15, 2024 07:07
@josix josix force-pushed the fix/providers/mongo-connection-attributeerror-issue-42930 branch from 1c5b47a to f6374f5 Compare October 15, 2024 07:48
@josix josix changed the title fix(providers/mongo): fix applying lower method on bool field fix(providers/mongo): prevent applying lower method on bool field Oct 15, 2024
@josix josix marked this pull request as ready for review October 15, 2024 07:49
@potiuk
Copy link
Member

potiuk commented Oct 15, 2024

Any chance for a unit test to prevent regression?

@josix josix force-pushed the fix/providers/mongo-connection-attributeerror-issue-42930 branch from f6374f5 to 54d086f Compare October 16, 2024 08:39
@josix
Copy link
Contributor Author

josix commented Oct 16, 2024

Sure, I've added one to test if the value is correct boolean, PTAL thanks!

@topherinternational
Copy link
Contributor

Nice catch @josix - I think the root cause here was the hook consuming the extra params from the connection was never tested 😅 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mongodb Connection] AttributeError: 'bool' object has no attribute 'lower'
4 participants