PER-10621: use Archivematica thumbnails#1051
Open
cecilia-donnelly wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1051 +/- ##
==========================================
- Coverage 50.03% 49.97% -0.06%
==========================================
Files 348 348
Lines 11497 11497
Branches 1974 1974
==========================================
- Hits 5752 5746 -6
- Misses 5559 5560 +1
- Partials 186 191 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
46004fa to
309741d
Compare
2e54c37 to
b63b1dc
Compare
9ce98b6 to
b071b9e
Compare
Map the 256 size thumbnail from the stela response to the record. Also check for it in the data service when deciding whether or not to refresh an item. I wanted to add a test, but I'm not sure this one is useful.
b071b9e to
18db8cd
Compare
Member
Author
|
I think this is ready for review now @slifty -- I would test it on dev. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the 256 size thumbnails wherever possible in the web-app. This is a followup to #923, which changed the way we load thumbnails in general. With this change, thumbnails will appear even if the other sizes are not available.
For thumbnails to appear in the file list, it needs companion PR https://github.com/PermanentOrg/back-end/pull/881. This one alone fixes the thumbnail in the sidebar editing modal.
I tested this by uploading a record on dev, checking to make sure that it got an Archivematica thumbnail (
thumbnail256was not null), then runningupdate record set thumburl200 = null, thumburl500 = null, thumburl1000 = null, thumburl2000 = null where recordid = _ID_OF_NEW_RECORDin the database directly.I mentioned this in the commit message, but I'm not sure this test is particularly useful - I just wanted to guard against a regression here somehow. Suggestions welcome!