-
Notifications
You must be signed in to change notification settings - Fork 27
fix(python): pass query parameters to request #3874
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
Conversation
🪓 The generated code will be pushed at the end of the CI.Action triggered by commit Please do not push any generated code to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the python client is working properly, query params are already part of the path, and they are working properly, we have e2e tests for that, maybe the client is running an older version ?
I tried it myself in the playground and it works as expected, with False or True
|
Maybe I didn't look carefully enough, but based on my analysis, no option that should be a query parameter in the API gets properly forwarded with the Python client. This includes I manually tested What I found was:
I tested this fix manually, and it correctly applies the query params. |
|
maybe there is something broken for the search client. |
|
@millotp Thanks! I indeed missed that. I found the real issue, but it's already fixed :) In version 4.5.0, Luckily, 6b42a26 already fixed this, so it shouldn't be an issue in the next release. I'll close this PR. |
🧭 What and Why
Apply the query parameters in
_session.request.The Python transporter didn't apply query parameters.
Methods with options passed as query parameters, such as
partial_update_objectwithcreate_if_not_existsdidn't work correctly.Fixes: algolia/algoliasearch-client-python#572