-
Notifications
You must be signed in to change notification settings - Fork 342
fix(content-uploader): Remove file id from itemIds when cancelling item #4425
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
Conversation
WalkthroughThe changes add cleanup logic to the ContentUploader component that removes internal file tracking IDs when files are cancelled from the upload queue, enabling those same files to be re-uploaded without being filtered out. A test case verifies this re-upload capability. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merge Queue Status✅ The pull request has been merged at c150806 This pull request spent 11 minutes 4 seconds in the queue, including 10 minutes 55 seconds running CI. Required conditions to merge
|
Fixes a bug in ContentUploader #4395
ContentUploader keeps a map of fileIds to avoid deduplication. But when removing an item, there was no logic to remove the item id from that map, so re-adding the same item would result in nothing happening. This PR fixes it to properly remove ids when removing an item.
Also, items are added with 2 separate ids because of a specific interaction with .pkg files, so this actually has to remove both ids.
Before:
Screen.Recording.2026-01-27.at.5.41.31.PM.mov
After:
Screen.Recording.2026-01-27.at.5.42.01.PM.mov
Summary by CodeRabbit
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.