We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OrganizationTestFireAction
1 parent 5cf2fc4 commit 806095aCopy full SHA for 806095a
‎src/sentry/notifications/notification_action/grouptype.py
@@ -13,6 +13,7 @@
13
from sentry.models.organization import Organization
14
from sentry.ratelimits.sliding_windows import Quota
15
from sentry.utils.samples import load_data
16
+from sentry.workflow_engine.tasks.utils import fetch_event
17
18
19
@dataclass(frozen=True)
@@ -73,6 +74,10 @@ def get_test_notification_event_data(project) -> GroupEvent | None:
73
74
return None
75
76
generic_group = group_info.group
- group_event = generic_group.get_latest_event()
77
78
- return group_event
+ event = fetch_event(occurrence.event_id, occurrence.project_id)
79
+
80
+ if event is None:
81
+ return None
82
83
+ return GroupEvent.from_event(event, generic_group)
0 commit comments