-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat: Use Snuba for Group.from_event_id #14034
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
This is the first part of #13905, which updates the group model to use events from Snuba instead of Postgres. This PR just updates the from_event_id function.
project_id=project.id, | ||
event_id=event_id, | ||
).values_list('group_id', flat=True)[0] | ||
event = SnubaEvent.objects.from_event_id(event_id, project.id) |
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.
Discussed in https://github.com/getsentry/sentry/pull/13905/files/3d3aa8be9807b50b6548c0b1b5a6f5b1027b5f4e#r301352481
this is not used in the ingestion path, so it should be safe.
# Look up event_id in both Event and EventMapping, | ||
# and bail when it matches one of them, prioritizing | ||
# Event since it contains more history. | ||
for model in Event, EventMapping: |
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.
Discussed in https://github.com/getsentry/sentry/pull/13905/files/3d3aa8be9807b50b6548c0b1b5a6f5b1027b5f4e#r301352764
removing EventMapping dependency should be safe.
* master: ref(admin): Convert user edit page to react (#14074) ref: Remove unused Group.get_oldest_event and legacy events behavior (#14038) ref(api): Update DELETE users/ to support hard deleting (#14068) test(OrganizationDiscoverSavedQueryDetailTest): Stabilize put test (#14077) meta(readme): Sentry logo should link to sentry.io (#14076) ref: Remove duplicate column (#14073) App platform/update permissions token auth (#14046) feat: Support issue IDs as canonical parameters ref: Change to new traceparent header for Python SDK (#14070) feat: Use option to force-disable transaction events (#14056) feat(apm): Register option to force-disable transaction events (#14055) Feat/mark sentry app installed put route (#14060) ref: Remove unused Group.event_set property (#14036) fix: Filter out groups that are pending deletion/merge from `by_qualified_short_id` (SEN-849) fix(ui): Fix resolve/ignore actions for accounts without multi… (#14058) Fix: Remove extra $.param introduced in GH-14051 (#14061) feat: Use Snuba for Group.from_event_id (#14034) fix(ui) Display implicit default sort and default to descending (#14042) fix(github) Fix 404s not being handled in repository search (#14030) fix: Pass an empty array to $.param instead of an empty string when options.query is falsey (#14051) # Conflicts: # src/sentry/utils/sdk.py
This is the first part of #13905,
which updates the group model to use events from Snuba instead of
Postgres. Splitting into smaller changes to make it easier to review and
merge safely. This PR updates the from_event_id function.