Skip to content

Add an optional on upload callback to Upload.Multi.handle_changes/5#10

Merged
JohnDoneth merged 5 commits intomasterfrom
jd-add-on-upload-callback
Apr 29, 2025
Merged

Add an optional on upload callback to Upload.Multi.handle_changes/5#10
JohnDoneth merged 5 commits intomasterfrom
jd-add-on-upload-callback

Conversation

@JohnDoneth
Copy link

@JohnDoneth JohnDoneth commented Apr 24, 2025

Builds off of work in #9

Problem

Some side-effects only need to be triggered when a blob has been uploaded, such as inserting a background job for further processing.

Solution

Add a "on_upload" callback that is fired when the blob record has actually changed. This adds a new operation to the base Multi being modified.

@JohnDoneth JohnDoneth requested a review from gtronset April 24, 2025 16:34
@JohnDoneth JohnDoneth self-assigned this Apr 24, 2025
@JohnDoneth JohnDoneth marked this pull request as ready for review April 24, 2025 20:27
Copy link

@gtronset gtronset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for adding the test!

@JohnDoneth JohnDoneth added this pull request to the merge queue Apr 29, 2025
Merged via the queue into master with commit 20586c8 Apr 29, 2025
1 check passed
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