Skip to content
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

ref: standardize user param as User | RpcUser | AnonymousUser in Serializers #83436

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

asottile-sentry
Copy link
Member

a tiny step to making these more typesafe

@asottile-sentry asottile-sentry requested review from a team January 14, 2025 20:51
@asottile-sentry asottile-sentry requested review from a team as code owners January 14, 2025 20:51
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 14, 2025
request,
request.user,
Copy link
Member Author

Choose a reason for hiding this comment

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

lol, this was just wrong -- fortunately nothing needed user in serializing this (and the one below!)

Copy link
Member

@JoshFerge JoshFerge left a comment

Choose a reason for hiding this comment

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

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 98.30508% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/users/api/serializers/useremail.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #83436   +/-   ##
=======================================
  Coverage   87.53%   87.53%           
=======================================
  Files        9405     9405           
  Lines      537138   537184   +46     
  Branches    21140    21140           
=======================================
+ Hits       470161   470214   +53     
+ Misses      66626    66619    -7     
  Partials      351      351           

@asottile-sentry asottile-sentry merged commit f5a97ca into master Jan 15, 2025
50 checks passed
@asottile-sentry asottile-sentry deleted the asottile-standardize-user-param branch January 15, 2025 14:59
andrewshie-sentry pushed a commit that referenced this pull request Jan 22, 2025
…alizers (#83436)

a tiny step to making these more typesafe

<!-- Describe your PR here. -->
@github-actions github-actions bot locked and limited conversation to collaborators Jan 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants