Skip to content
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

Merged
merged 11 commits into from
Dec 9, 2024
Merged

fix: add gap at start of recording #26743

merged 11 commits into from
Dec 9, 2024

Conversation

pauldambra
Copy link
Member

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

@pauldambra pauldambra requested review from daibhin and a team December 6, 2024 23:00
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

70 snapshot changes in total. 0 added, 70 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

114 snapshot changes in total. 0 added, 114 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

return snapshotStart
// whichever is earliest
if (eventStart && snapshotStart) {
return eventStart.isBefore(snapshotStart) ? eventStart : snapshotStart
Copy link
Contributor

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?

Copy link
Member Author

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 🙈

Copy link
Contributor

@ioannisj ioannisj left a 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

@pauldambra pauldambra merged commit c30351c into master Dec 9, 2024
96 checks passed
@pauldambra pauldambra deleted the fix/pd/gap-at-start branch December 9, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants