-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add coverage for combining an existing query string with params #9065
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #9065 +/- ##
=======================================
Coverage 98.30% 98.30%
=======================================
Files 107 107
Lines 34371 34390 +19
Branches 4072 4075 +3
=======================================
+ Hits 33787 33806 +19
Misses 412 412
Partials 172 172
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Backport to 3.10: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply b6196e7 on top of patchback/backports/3.10/b6196e77f394e68a4cce5af72fde066194fb94ac/pr-9065 Backporting merged PR #9065 into master
🤖 @patchback |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply b6196e7 on top of patchback/backports/3.11/b6196e77f394e68a4cce5af72fde066194fb94ac/pr-9065 Backporting merged PR #9065 into master
🤖 @patchback |
(cherry picked from commit b6196e7)
(cherry picked from commit b6196e7)
…ing query string with params (#9066)
…ing query string with params (#9067)
Add coverage for combining an existing query string with params.
I expected the change in #9062 would have failed the CI, and turns out the complex query string construction there is needed, but there is no coverage for it.
When we have multiple query strings, we don't want to overwrite keys, since some applications will want multiple values for the same key. Ie
name=X&name=Y&name=Z
is used to indicate there are 3 payloads, etc.The complex logic we have to combine query strings should be handled in
yarl
. Currently we only have a way to update the query string but that overwrites values. We need a way to extend the query string and take advantage ofmultidict
's ability to have the same key.