Skip to content

Conversation

@thetruecpaul
Copy link
Contributor

Some callsites are re-using the same dictionary. It causes problems when we del filter_keys["group_id"] (because that mutates the input dict).

This PR runs a copy before mutating, so the original input should not be mutated.

@thetruecpaul thetruecpaul requested review from a team and scttcper November 11, 2025 19:58
@thetruecpaul thetruecpaul requested review from a team as code owners November 11, 2025 19:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 11, 2025
Some callsites are re-using the same dictionary. It causes problems when we `del filter_keys["group_id"]` (because that mutates the input dict).

This PR runs a copy before mutating, so the original input should not be mutated.
@thetruecpaul thetruecpaul force-pushed the cpaul/111125/snubanomutatefilter branch from 44e6663 to e542d39 Compare November 11, 2025 20:01
@thetruecpaul thetruecpaul merged commit 87cee2f into master Nov 11, 2025
66 checks passed
@thetruecpaul thetruecpaul deleted the cpaul/111125/snubanomutatefilter branch November 11, 2025 20:28
thetruecpaul added a commit that referenced this pull request Nov 11, 2025
Hotlined the fix in #103177 because it was causing problems. Best practice is to add a test here to ensure we don't regress in the future.
thetruecpaul added a commit that referenced this pull request Nov 11, 2025
Hotlined the fix in #103177 because it was causing problems. Best practice is to add a test here to ensure we don't regress in the future.
thetruecpaul added a commit that referenced this pull request Nov 11, 2025
Hotlined the fix in #103177 because it was causing problems. Best
practice is to add a test here to ensure we don't regress in the future.
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
Some callsites are re-using the same dictionary. It causes problems when
we `del filter_keys["group_id"]` (because that mutates the input dict).

This PR runs a copy before mutating, so the original input should not be
mutated.
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
Hotlined the fix in #103177 because it was causing problems. Best
practice is to add a test here to ensure we don't regress in the future.
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
Some callsites are re-using the same dictionary. It causes problems when
we `del filter_keys["group_id"]` (because that mutates the input dict).

This PR runs a copy before mutating, so the original input should not be
mutated.
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
Hotlined the fix in #103177 because it was causing problems. Best
practice is to add a test here to ensure we don't regress in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants