Skip to content

Conversation

roggenkemper
Copy link
Member

repeating_spans_compact can be a list, not just a string. if it is, we should just take the first span and use that.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 8, 2025
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/notifications/utils/__init__.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #101222      +/-   ##
===========================================
- Coverage   81.04%    81.04%   -0.01%     
===========================================
  Files        8675      8675              
  Lines      384888    384891       +3     
  Branches    24312     24312              
===========================================
  Hits       311943    311943              
- Misses      72586     72589       +3     
  Partials      359       359              

@roggenkemper roggenkemper marked this pull request as ready for review October 8, 2025 23:01
@roggenkemper roggenkemper requested review from a team as code owners October 8, 2025 23:01
@roggenkemper roggenkemper requested a review from a team October 9, 2025 18:13
repeating_spans_compact = event.occurrence.evidence_data.get("repeating_spans_compact", "")
if isinstance(repeating_spans_compact, list):
repeating_spans_compact = repeating_spans_compact[0]
return repeating_spans_compact.replace("`", '"')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but if you feel this might be important enough to add a test that would be good

@roggenkemper roggenkemper merged commit 06cd926 into master Oct 9, 2025
66 checks passed
@roggenkemper roggenkemper deleted the roggenkemper/handlelisttype branch October 9, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants