8000 fix: Do not overwrite User data if already set by rhcarvalho · Pull Request #637 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

fix: Do not overwrite User data if already set #637

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

Merged
merged 1 commit into from
Feb 27, 2020

Conversation

rhcarvalho
Copy link
Contributor

Turns out some users manually set user.id and other fields in the scope,
and those values get overwritten by integrations.

Glanced over places where we could be inadvertently overwriting user
data and changed to use setdefault to avoid overwriting existing values.

Turns out some users manually set user.id and other fields in the scope,
and those values get overwritten by integrations.

Glanced over places where we could be inadvertently overwriting user
data and changed to use setdefault to avoid overwriting existing values.
@rhcarvalho rhcarvalho requested a review from untitaker February 27, 2020 16:08
@rhcarvalho rhcarvalho merged commit 4112000 into master Feb 27, 2020
@rhcarvalho rhcarvalho deleted the rhcarvalho/integrations-do-not-overwrite-data branch February 27, 2020 16:59
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
0