Skip to content

Commit c3ac170

Browse files
committed
fix(autofix): Add missing @EventClass decorator to AiAutofixPhaseEvent base class
The base event class was missing the @analytics.eventclass() decorator, which meant it wasn't processed as a proper dataclass. Child classes couldn't accept keyword arguments like organization_id. Agent transcript: https://claudescope.sentry.dev/share/0U9SUOfdYVu5539zSG_tdufbBsNcV98mrxSXz9fNeIA
1 parent 86bf251 commit c3ac170

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sentry/analytics/events/autofix_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from sentry import analytics
22

33

4+
@analytics.eventclass()
45
class AiAutofixPhaseEvent(analytics.Event):
56
organization_id: int
67
project_id: int

0 commit comments

Comments
 (0)