Skip to content

fix(replay): Add handling for null max_segment_id #93989

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

cmanallen
Copy link
Member

When the max segment ID is null the process fails. We should exit early since if there aren't any segments to delete there's nothing to do.

@cmanallen cmanallen requested a review from a team as a code owner June 20, 2025 20:15
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 20, 2025
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

Attention: Patch coverage is 66.66667% 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/replays/usecases/delete.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #93989   +/-   ##
=======================================
  Coverage   88.03%   88.03%           
=======================================
  Files       10353    10355    +2     
  Lines      598242   598252   +10     
  Branches    23233    23233           
=======================================
+ Hits       526680   526696   +16     
+ Misses      71094    71088    -6     
  Partials      468      468           

@cmanallen cmanallen merged commit ea188e2 into master Jun 20, 2025
65 checks passed
@cmanallen cmanallen deleted the cmanallen/replays-handle-null-max-segment-id branch June 20, 2025 20:36
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.

3 participants