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

Update to skip uploading all files if any of the files fail #218

Merged
merged 1 commit into from Jan 8, 2018
Merged

Update to skip uploading all files if any of the files fail #218

merged 1 commit into from Jan 8, 2018

Conversation

ntietz
Copy link
Contributor

@ntietz ntietz commented Sep 16, 2017

We recently ran into an issue where we had multiple versions of a file and if one of the conversions fails (for example, if it is not actually an image, but a text file with an incorrect file extension) then some of the uploads will work (those which have no :noaction) but all the conversions will fail.

This results in overwriting :original versions despite returning an error code to the user, resulting in inconsistent states and unexpected side effects.

This PR adds a test for this behavior, and updates to run the processing of files separately from the uploading so that we may stop uploads if any of the conversions fail.

@ntietz
Copy link
Contributor Author

ntietz commented Oct 2, 2017

@stavro Is there any blocker to merge this? Also, noticed there are a lot of open PRs - do you need any help maintaining this?

@ntietz ntietz mentioned this pull request Nov 7, 2017
6 tasks
@ntietz
Copy link
Contributor Author

ntietz commented Dec 20, 2017

@stavro Is there any blocker to merge this?

@pedep
Copy link
Contributor

pedep commented Jan 3, 2018

Looks good to me 👍

@stavro stavro merged commit 3d9f647 into stavro:master Jan 8, 2018
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.

None yet

3 participants