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: issues with filer image crash when trying to generate thumbnail #1384

Merged
merged 11 commits into from
Jul 12, 2023

Conversation

vinitkumar
Copy link
Member

@vinitkumar vinitkumar commented Jul 11, 2023

Thumbnail generation can fail when the image is not present or moved or if we have a reference in database but no image in storage.

Authored-by: Vinit Kumar [email protected]

Description

Related resources

  • #...
  • #...

Checklist

  • I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

vinitkumar and others added 2 commits July 10, 2023 00:43
Thumbnail generation can fail when the image is not present or moved or
if we have a reference in database but no image in storage.

- Github Issue: Fixes  #1379

Authored-by: Vinit Kumar <[email protected]>
Signed-off-by: Vinit Kumar <[email protected]>
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #1384 (e6f7995) into master (4c2b9eb) will increase coverage by 0.33%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1384      +/-   ##
==========================================
+ Coverage   73.64%   73.98%   +0.33%     
==========================================
  Files          75       75              
  Lines        3426     3436      +10     
  Branches      551      552       +1     
==========================================
+ Hits         2523     2542      +19     
+ Misses        732      722      -10     
- Partials      171      172       +1     
Impacted Files Coverage Δ
filer/admin/fileadmin.py 89.77% <100.00%> (+9.04%) ⬆️
filer/apps.py 89.74% <100.00%> (+7.39%) ⬆️

tests/test_admin.py Fixed Show fixed Hide fixed
@fsbraun fsbraun self-requested a review July 11, 2023 20:09
Copy link
Sponsor Member

@fsbraun fsbraun left a comment

Choose a reason for hiding this comment

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

Nice! Thanks, @vinitkumar !

@fsbraun
Copy link
Sponsor Member

fsbraun commented Jul 11, 2023

@vinitkumar I added tests. Please go check them and merge if you're ok!

tests/test_admin.py Fixed Show fixed Hide fixed
@fsbraun fsbraun merged commit 45ef9ee into master Jul 12, 2023
43 checks 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.

Crash in filer when creating icons when the image doesn't exists
2 participants