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

Only remove asset files when not used by other replays #252

Conversation

ryanjduffy
Copy link
Contributor

Issue

We were blindly removing any asset file (sourcemap, original source, .dat file) after removing or uploading a recording but sometimes the sourcemaps are used by multiple replays when recording the same site.

Resolution

Only remove files not used by another replay on disk. The last usage should remove the remaining asset.

@ryanjduffy ryanjduffy requested review from jaril and hbenl September 22, 2023 16:39
@ryanjduffy ryanjduffy merged commit 001e546 into main Sep 25, 2023
3 checks passed
@ryanjduffy ryanjduffy deleted the ryan/scs-1447-cli-is-removing-sourcemaps-used-by-other-recordings branch September 25, 2023 16:48
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.

2 participants