Skip to content

Conversation

@aliu39
Copy link
Member

@aliu39 aliu39 commented Apr 18, 2025

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_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 ""

@aliu39 aliu39 requested review from a team as code owners April 18, 2025 21:27
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 18, 2025
@codecov
Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All 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           

Comment on lines -139 to -140
if event_data.get("dist") is not None:
del event_data["dist"]
Copy link
Member

Choose a reason for hiding this comment

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

what happened to dist?

Copy link
Member Author

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

@aliu39 aliu39 merged commit f0f1974 into master Apr 18, 2025
63 checks passed
@aliu39 aliu39 deleted the aliu/feedback-reverse-shim-fix branch April 18, 2025 22:43
andrewshie-sentry pushed a commit that referenced this pull request Apr 22, 2025
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 `""`
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 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.

3 participants