Skip to content

fix: keep interleaved query parameter values - #820

Open
nickita-khylkouski wants to merge 1 commit into
getsentry:masterfrom
nickita-khylkouski:fix/interleaved-query-params
Open

nickita-khylkouski wants to merge 1 commit into
getsentry:masterfrom
nickita-khylkouski:fix/interleaved-query-params

Conversation

@nickita-khylkouski

Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other

Description

Replace the adjacency-dependent groupby(parse_qsl(...)) logic with parse_qs(...).items(). Repeated values are now retained even when another query key appears between them.

Related Issues

None.

PR checklist

Before submitting this pull request, I have done the following:

I ran the complete pytest suite (236 passed), all pre-commit hooks, and a package build. Current mypy reports the same three pre-existing errors on an unchanged upstream checkout.

Added/updated tests?

Current repository has 100% test coverage.

  • Yes
  • No, and this is why:
  • I need help with writing tests

@nickita-khylkouski
nickita-khylkouski force-pushed the fix/interleaved-query-params branch from 6bd3382 to bcf3d94 Compare September 15, 2026 20:34
),
],
)
def test_request_param_with_interleaved_keys(params, expected): # type: ignore[misc]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know there are some existing tests with ignores. Can we remove the type: ignore on this one so that I don't have more to clean up later?

@codecov

codecov Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.91%. Comparing base (aae1d47) to head (bcf3d94).
⚠️ Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #820      +/-   ##
==========================================
+ Coverage   99.84%   99.91%   +0.06%     
==========================================
  Files           9        9              
  Lines        3295     3370      +75     
==========================================
+ Hits         3290     3367      +77     
+ Misses          5        3       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants