-
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
feat: Refactor loading of snapshots #20632
Changes from 3 commits
a633392
ab797d2
4d1c7a7
6543e07
3a4c063
93353b5
1a7ed41
ce82531
f53b69c
2e95887
1c33af8
d0cfc9b
aa37022
bdb7775
76d4e5b
a73dc1b
b8583de
6623d03
d76809a
cce7b1e
78f9067
079a6cb
4fd09e5
9c8b11e
6d126ff
7d75dc8
64f0e01
60447d4
242fdd6
e3307f4
713574c
8dc8f36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've shipped some smaller parts of this change in previous PRs and did a thorough review today. It's pretty difficult to review 100% but I'm fairly confident it does what it's intended to. My plan is to test it locally but think it's probably worth shipping at this point and following up with any fixes forward we need. @benjackwhite is there anything you'd like to do before we ship? There's still a few TODOs knocking about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just don't have any spare capacity for it so its fully in your hands |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { eventWithTime } from '@rrweb/types' | ||
|
||
import { PersonType, RecordingSnapshot, SessionRecordingType } from '~/types' | ||
|
||
export type ExportedSessionRecordingFileV1 = { | ||
version: '2022-12-02' | ||
data: { | ||
person: PersonType | null | ||
snapshotsByWindowId: Record<string, eventWithTime[]> | ||
} | ||
} | ||
|
||
export type ExportedSessionRecordingFileV2 = { | ||
version: '2023-04-28' | ||
data: { | ||
id: SessionRecordingType['id'] | ||
person: SessionRecordingType['person'] | ||
snapshots: RecordingSnapshot[] | ||
} | ||
} |
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.
@PostHog/team-product-analytics this snapshot seems to be flapping on quite a few PRs this week