-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 requesting urls containing parameters with parameters dict #2929
Conversation
b62d383
to
ae187c7
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #2929 +/- ##
=======================================
Coverage 96.74% 96.74%
=======================================
Files 147 147
Lines 14978 14984 +6
=======================================
+ Hits 14491 14497 +6
Misses 487 487 ☔ View full report in Codecov by Sentry. |
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.
Why allow duplicate request parameters at all, why not throw an exception?
If we're doing this internally, this seems like a bug?
You are right, calling this method this way does not make much sense. But the code path that ends up in this situation is complex. Other code paths might suffer from the same issue, and it is not trivial to identify those. It is expected that the values of the parameters are identical, so this is the right thing to do in that situation. I could throw an exception when parameter values contradict. But then this becomes a breaking change for some people where this just behaved incorrectly. |
Hello. Is there a chance we can have it merged? |
ae187c7
to
ac66ee8
Compare
@JLLeitschuh you are right, now |
2d47df8
to
ce5970c
Compare
Requesting an url that contains parameters (query part of the url) did not support giving a parameters dict:
Now, parameters given in the URL have precedence over the dict.
Iterating over reversed
PaginatedList
is affected by this.Fixes #1136.