fix(seer): Populate missing IssueDetails fields for explorer_index #109213
+106
−0
@sentry/warden / warden: sentry-backend-bugs
completed
Feb 24, 2026 in 45s
1 issue
sentry-backend-bugs: Found 1 issue (1 medium)
Medium
AttributeError when group.data is None - `src/sentry/seer/explorer/index_data.py:508`
The code calls group.data.get("metadata", {}) but the Group model's data field is defined as LegacyTextJSONField(null=True) (line 669 of group.py), meaning it can be None. When group.data is None, this line will raise AttributeError: 'NoneType' object has no attribute 'get'. This matches the pattern from SENTRY-3Z3P (NoneType item assignment) where code assumes a value is a dict when it can be None.
Duration: 44.9s · Tokens: 169.2k in / 2.7k out · Cost: $0.40 (+extraction: $0.00)
Annotations
Check warning on line 508 in src/sentry/seer/explorer/index_data.py
sentry-warden / warden: sentry-backend-bugs
AttributeError when group.data is None
The code calls `group.data.get("metadata", {})` but the Group model's `data` field is defined as `LegacyTextJSONField(null=True)` (line 669 of group.py), meaning it can be None. When `group.data` is None, this line will raise `AttributeError: 'NoneType' object has no attribute 'get'`. This matches the pattern from SENTRY-3Z3P (NoneType item assignment) where code assumes a value is a dict when it can be None.
Loading