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

Move original deletion to later in the function #746

Merged
merged 1 commit into from
Oct 9, 2020
Merged

Move original deletion to later in the function #746

merged 1 commit into from
Oct 9, 2020

Conversation

kamil4
Copy link
Contributor

@kamil4 kamil4 commented Oct 1, 2020

Fixes #733.

There was a race condition between the original being deleted early and the photo being saved in the database much later; if for some reason the photo didn't get saved (timeout, etc), an image would go missing.

In the process I undid what I believe was an unnecessary change from #574 to ImportController which resulted in a notification string that was not following the required formatting.

@codecov
Copy link

codecov bot commented Oct 1, 2020

Codecov Report

Merging #746 into master will decrease coverage by 0.02%.
The diff coverage is 33.33%.

@sonarcloud
Copy link

sonarcloud bot commented Oct 1, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@ildyria ildyria left a comment

Choose a reason for hiding this comment

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

LGTM but not tested.

@ildyria ildyria merged commit fd29b8c into master Oct 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-733 branch October 9, 2020 10:07
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.

Problem with Image Upload when importing from Server
2 participants