-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(feedback): fix typing for shims from v2 to v1 #89949
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
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 #89949 +/- ##
=======================================
Coverage 87.64% 87.64%
=======================================
Files 10250 10251 +1
Lines 577029 577050 +21
Branches 22719 22719
=======================================
+ Hits 505725 505756 +31
+ Misses 70861 70851 -10
Partials 443 443 |
| if event_data.get("dist") is not None: | ||
| del event_data["dist"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happened to dist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code wasn't doing anything.. since we never set dist in ret_event, and don't use the original event after this fx is called
Follow-up on #89685. Fixes [SENTRY-3SEX](https://sentry.sentry.io/issues/6551468609/events/9a88f59af64d4f86bddf42060cdff0d9/) Fixes [SENTRY-3SEZ](https://sentry.sentry.io/issues/6551532041/events/bd020dada1a74f1ba96faa07c33df30c/) Fixes [SENTRY-3SEY](https://sentry.sentry.io/issues/6551484362/events/42136852328a4acdb6f21922bd6425af/) Only the message/comments field is required, so we need to handle missing name or email. Also event timestamp is a ISO str. Also adds better typing to `save_userreport` and cleans up the event formatting code in `create_feedback` a bit. Functionality is the same, except now we'll always include the `user.email` context/tag, defaulting to empty str `""`
Follow-up on #89685.
Fixes SENTRY-3SEX
Fixes SENTRY-3SEZ
Fixes SENTRY-3SEY
Only the message/comments field is required, so we need to handle missing name or email. Also event timestamp is a ISO str.
Also adds better typing to
save_userreportand cleans up the event formatting code increate_feedbacka bit. Functionality is the same, except now we'll always include theuser.emailcontext/tag, defaulting to empty str""