-
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
Merged
+401
−399
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a633392
feat: Refactor loading of snapshots
benjackwhite ab797d2
Update UI snapshots for `chromium` (2)
github-actions[bot] 4d1c7a7
Update query snapshots
github-actions[bot] 6543e07
Update UI snapshots for `chromium` (2)
github-actions[bot] 3a4c063
Update query snapshots
github-actions[bot] 93353b5
Update UI snapshots for `chromium` (2)
github-actions[bot] 1a7ed41
Update UI snapshots for `chromium` (2)
github-actions[bot] ce82531
Update UI snapshots for `webkit` (2)
github-actions[bot] f53b69c
Update UI snapshots for `webkit` (2)
github-actions[bot] 2e95887
Fixes
benjackwhite 1c33af8
Fix tests
benjackwhite d0cfc9b
Fixes
benjackwhite aa37022
Update UI snapshots for `chromium` (2)
github-actions[bot] bdb7775
Fix
benjackwhite 76d4e5b
Fixes
benjackwhite a73dc1b
Update UI snapshots for `chromium` (2)
github-actions[bot] b8583de
Updated logs
benjackwhite 6623d03
Fix file size check
benjackwhite d76809a
Merge branch 'master' into fix/v3-snapshots
benjackwhite cce7b1e
Update UI snapshots for `webkit` (2)
github-actions[bot] 78f9067
Update UI snapshots for `webkit` (2)
github-actions[bot] 079a6cb
Update UI snapshots for `chromium` (1)
github-actions[bot] 4fd09e5
Update UI snapshots for `webkit` (2)
github-actions[bot] 9c8b11e
Update UI snapshots for `chromium` (1)
github-actions[bot] 6d126ff
Merge branch 'master' into fix/v3-snapshots
daibhin 7d75dc8
minor fixes from review
daibhin 64f0e01
Merge branch 'master' into fix/v3-snapshots
daibhin 60447d4
Merge branch 'master' into fix/v3-snapshots
daibhin 242fdd6
remove etag changes
daibhin e3307f4
remove unnecessary line break
daibhin 713574c
fix comment
daibhin 8dc8f36
Merge branch 'master' into fix/v3-snapshots
daibhin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
frontend/src/scenes/session-recordings/file-playback/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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 comment
The 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