getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.3k stars 4.22k forks source link

Migrate UserReport-related services to Feedback Issues #79859

Open aliu39 opened 1 month ago

aliu39 commented 1 month ago

Due to supporting older SDKs and ways of submitting feedback, we have 2 storages. The sentry_userreport table in postgres (attachments dataset), and search_issues in Snuba (shared with other Issue Platform types). Very few services use Postgres and we'd like to stop using it entirely, since Snuba is a superset of all feedback. This will

Tasks:

  1. migrate issue details feedback tab to query snuba search_issues instead of postgres. Do the same for all sentry features that use the model (pretty sure it's just issue details).

  2. decide whether to a. stop supporting the /user-feedback/ api entirely, or b. call /issues/ under the hood and return extra fields, but ensure backward compatibility i. don't actually call /issues/, just copy the backend query

  3. make a task to delete already-shimmed user reports. At this point, nothing should be querying these.

aliu39 commented 1 month ago

Potential problems:

aliu39 commented 1 month ago

Bug report example: https://github.com/getsentry/sentry/issues/77374#issuecomment-2359225953

aliu39 commented 3 weeks ago

Related