-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: add gap at start of recording #26743
Conversation
📸 UI snapshots have been updated70 snapshot changes in total. 0 added, 70 modified, 0 deleted:
Triggered by this commit. |
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated114 snapshot changes in total. 0 added, 114 modified, 0 deleted:
Triggered by this commit. |
return snapshotStart | ||
// whichever is earliest | ||
if (eventStart && snapshotStart) { | ||
return eventStart.isBefore(snapshotStart) ? eventStart : snapshotStart |
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.
Isn't this just the min between the two? I mean can't we use dayjs.min here?
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.
🤔 quite possibly... will loop back if this doesn't fix the issue 🙈
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.
Can't understand completely the logic for adding a "gap", but makes sense otherwise
follow-up to #26718
which was a follow-up to #26718
this continues to behave differently in production than with fake data locally 🤷
when segmenting we make sure there's a buffer at the end if the recording data ends before the metadata end
and we make sure there's a gap in between segments if they don't touch
let's also make sure there's a gap at the start of the recording if meta start is before snapshot start