-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(replay): validate replay start/end for summaries #103388
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
base: master
Are you sure you want to change the base?
Conversation
aliu39
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets pass None when missing, seer accepts none now
could also leave it as is and keep observing when this happens, we're selecting all fields in query_replay_instance so I'd expect these to always be valid
pass None as the replay_start/replay_end value? |
|
can we add a warning log for when either is none, it really shouldn't happen for the snuba query |
| "replay_start": replay_start.isoformat(), | ||
| "replay_end": replay_end.isoformat(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confused why we were converting from iso and then to iso here, do we need this? .get() should default to None if it doesn't find anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doing fromiso first to validate the format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok added back validation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #103388 +/- ##
===========================================
+ Coverage 80.64% 80.67% +0.03%
===========================================
Files 9237 9237
Lines 394659 394658 -1
Branches 25146 25146
===========================================
+ Hits 318280 318407 +127
+ Misses 75932 75804 -128
Partials 447 447 |
fixeds SENTRY-5CYF
if replay start or replay end are missing, pass None instead of a empty string