Skip to content

Conversation

@xsahil03x
Copy link
Member

This commit introduces an eagerError parameter to the uploadBatch method in AttachmentUploader.

When eagerError is true, the upload stream will throw an exception and close immediately upon the first failed upload. If eagerError is false (the default behavior), failed uploads will be emitted as Result.failure and the upload process will continue for the remaining attachments.

Additionally, the attachments parameter in uploadBatch has been changed from List<StreamAttachment> to Iterable<StreamAttachment> for better flexibility. A similar change was made to the merge extension method.

This commit introduces an `eagerError` parameter to the `uploadBatch` method in `AttachmentUploader`.

When `eagerError` is true, the upload stream will throw an exception and close immediately upon the first failed upload. If `eagerError` is false (the default behavior), failed uploads will be emitted as `Result.failure` and the upload process will continue for the remaining attachments.

Additionally, the `attachments` parameter in `uploadBatch` has been changed from `List<StreamAttachment>` to `Iterable<StreamAttachment>` for better flexibility. A similar change was made to the `merge` extension method.
@xsahil03x xsahil03x requested a review from a team as a code owner September 3, 2025 12:54
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.95%. Comparing base (4732923) to head (1812c94).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   83.95%   83.95%           
=======================================
  Files           5        5           
  Lines         162      162           
=======================================
  Hits          136      136           
  Misses         26       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xsahil03x xsahil03x merged commit 5acdcb8 into main Sep 3, 2025
7 checks passed
@xsahil03x xsahil03x deleted the refactor/attachment-uploader branch September 3, 2025 12:57
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.

3 participants