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

Fix the bug that when querying original cache miss, the download process will be skipped. This is not designed behavior. #3221

Conversation

dreampiggy
Copy link
Contributor

New Pull Request Checklist

  • I have read and understood the CONTRIBUTING guide

  • I have read the Documentation

  • I have searched for a similar pull request in the project and found none

  • I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

  • I have added the required tests to prove the fix/feature I am adding

  • I have updated the documentation (if necessary)

  • I have run the tests and they pass

  • I have run the lint and it passes (pod lib lint)

This merge request fixes / refers to the following issues: ...

Pull Request Description

This is a bug that breaks current transformer function.

Seems related to #2360 refactory changes. Mistake code.

@dreampiggy dreampiggy added bug fix transformer Image Transformer Process labels Apr 23, 2021
@dreampiggy dreampiggy added this to the 5.11.1 milestone Apr 23, 2021
…ess will be skipped. This is not designed behavior.
@dreampiggy dreampiggy force-pushed the bugfix_original_cache_miss_continue_download branch from d09f8e2 to 896c5f6 Compare April 23, 2021 04:43
@codecov
Copy link

codecov bot commented Apr 23, 2021

Codecov Report

Merging #3221 (896c5f6) into master (72daa08) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3221      +/-   ##
==========================================
- Coverage   83.31%   83.29%   -0.02%     
==========================================
  Files          70       70              
  Lines        7724     7728       +4     
==========================================
+ Hits         6435     6437       +2     
- Misses       1289     1291       +2     
Flag Coverage Δ
ios 83.10% <100.00%> (-0.17%) ⬇️
macos 83.09% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
SDWebImage/Core/SDWebImageManager.m 87.75% <100.00%> (+0.11%) ⬆️
SDWebImage/Core/SDWebImageDownloaderOperation.m 91.20% <0.00%> (-1.10%) ⬇️
SDWebImage/Core/SDAnimatedImagePlayer.m 90.03% <0.00%> (-0.40%) ⬇️
SDWebImage/Core/SDImageCache.m 76.61% <0.00%> (-0.36%) ⬇️
SDWebImage/Core/SDImageIOAnimatedCoder.m 85.34% <0.00%> (+0.23%) ⬆️
SDWebImage/Core/SDWebImageDownloader.m 85.82% <0.00%> (+0.26%) ⬆️
SDWebImage/Core/SDImageLoader.m 89.43% <0.00%> (+2.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e88df1f...896c5f6. Read the comment docs.

@dreampiggy
Copy link
Contributor Author

Seems the test case now works.

@dreampiggy dreampiggy merged commit a419906 into SDWebImage:master Apr 23, 2021
@bpoplauschi bpoplauschi deleted the bugfix_original_cache_miss_continue_download branch April 25, 2021 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix transformer Image Transformer Process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants