Uh oh!
There was an error while loading. Please reload this page.
Fix: Gallery Thumbnails Failing to Re-Assign - #93
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mxmeinhold
commented
Mar 31, 2022
Does this really fix 67? |
jabbate19
commented
Mar 31, 2022
There's no need for a UI now. It is automatically checking for broken and knows how to fix itself |
mxmeinhold
commented
Mar 31, 2022
Does it update the thumbnail when files get moved? Or only when the thumbnail results in a 404? If it doesn't, then this doesn't resolve 67 nor 65 |
jabbate19
commented
Mar 31, 2022
I moved a file in my dev instance and it updated the thumbnail |
mxmeinhold
left a comment
There was a problem hiding this comment.
One concern, otherwise LGTM
| link = "http://" + app.config["SERVER_NAME"] + link | ||
| req = requests.get(link) | ||
| while req.status_code != requests.codes.ok: | ||
| dir_model.thumbnail_uuid = refresh_directory_thumbnail(dir_model) |
There was a problem hiding this comment.
Will this default to the "no thumbnail" photo if it fails to generate one? Want to be sure this can't loop infinitely.
So when a file that was the thumbnail of a directory is deleted, the directory doesn't update and causes a 404 when Gallery reaches out to S3/Local Storage to get it again. This makes it detect a non-ok status code and reset the thumbnail for that directory.
Fixes#65
Fixes#67
Fixes#80