Fix requesting urls containing parameters with parameters dict#2929
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. |
JLLeitschuh
left a comment
There was a problem hiding this comment.
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
PaginatedListis affected by this.Fixes #1136.