Skip to content

PER-10621: use Archivematica thumbnails#1051

Open
cecilia-donnelly wants to merge 1 commit into
mainfrom
per-10621-archivematica-thumbnails
Open

PER-10621: use Archivematica thumbnails#1051
cecilia-donnelly wants to merge 1 commit into
mainfrom
per-10621-archivematica-thumbnails

Conversation

@cecilia-donnelly

@cecilia-donnelly cecilia-donnelly commented Jun 8, 2026

Copy link
Copy Markdown
Member

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 (thumbnail256 was not null), then running update record set thumburl200 = null, thumburl500 = null, thumburl1000 = null, thumburl2000 = null where recordid = _ID_OF_NEW_RECORD in 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!

@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.97%. Comparing base (2b811f1) to head (18db8cd).
⚠️ Report is 4 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cecilia-donnelly cecilia-donnelly force-pushed the per-10621-archivematica-thumbnails branch from 46004fa to 309741d Compare June 8, 2026 19:51
@cecilia-donnelly cecilia-donnelly changed the title PER-10621: try this on dev PER-10621: use Archivematica thumbnails Jun 8, 2026
@cecilia-donnelly cecilia-donnelly force-pushed the per-10621-archivematica-thumbnails branch 2 times, most recently from 2e54c37 to b63b1dc Compare June 8, 2026 21:00
@cecilia-donnelly cecilia-donnelly requested a review from slifty June 8, 2026 21:00
@cecilia-donnelly cecilia-donnelly marked this pull request as ready for review June 8, 2026 21:04
@cecilia-donnelly cecilia-donnelly marked this pull request as draft June 8, 2026 21:13
@cecilia-donnelly cecilia-donnelly force-pushed the per-10621-archivematica-thumbnails branch from 9ce98b6 to b071b9e Compare June 11, 2026 18:30
@cecilia-donnelly cecilia-donnelly marked this pull request as ready for review June 11, 2026 20:21
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.
@cecilia-donnelly cecilia-donnelly force-pushed the per-10621-archivematica-thumbnails branch from b071b9e to 18db8cd Compare June 11, 2026 20:21
@cecilia-donnelly

Copy link
Copy Markdown
Member Author

I think this is ready for review now @slifty -- I would test it on dev.

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.

1 participant