feat(upload/transformFiles): remove unnecessary validation - #1058
feat(upload/transformFiles): remove unnecessary validation#1058an-jello wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: 04c31ee The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe upload package updates ChangesUpload behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🟠 High · up to File uploads may fail when FileList indexing yields an absent entry because the new transformation path can pass it to URL.createObjectURL. This should be resolved before merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
c1e461a to
04c31ee
Compare
|
Whoops, was attempting to use PR stacking but failed :/ Rebased the changes above to be on top of main again |
The current
transformFilesfunction does an unnecessary check for a valid file index number / file existing in an index. This PR removes it.I've consulted the W3C reference:
FileList"are the numbers in the range zero to one less than the number of File objects"Summary by CodeRabbit
onDragStart,onDragEnd, andonDragdropzone callbacks.onDragEnter,onDragLeave, andonDragOvercallbacks.