Skip to content

feat: Download single WACZ file when possible #2805

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

SuaYoo
Copy link
Member

@SuaYoo SuaYoo commented Aug 14, 2025

Resolves #2648

Changes

Uses sole WACZ file instead of creating new multi-WACZ when downloading an archived item.

Manual testing

  1. Log in
  2. Go to an archived item with a single WACZ file
  3. Go to "Files" tab. Verify "Download File" button is shown
  4. Select "Download File". Verify the same WACZ file as the one listed in "WACZ Files" list is downloaded
  5. Go to workflow for the archived item
  6. Select "Download" from the "Latest Crawl" tab. Verify same single WACZ file is downloaded
  7. Regression test for archived item with multiple WACZ files

Screenshots

Page Image/video
Archived Item / WACZ Files Screenshot 2025-08-14 at 1 00 10 PM

Follow-ups

"Download Item" in the archived items list still downloads a multi-WACZ file since resources is omitted in the all-crawls response. If we want to enable single WACZ downloads from this view, we could do follow-up work to request the item resources in a separate frontend API call, or the backend could include a download link in the list response data.

@SuaYoo SuaYoo requested review from ikreymer, emma-sg and tw4l August 14, 2025 20:59
@SuaYoo SuaYoo marked this pull request as ready for review August 14, 2025 20:59
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.

[Change]: If only one WACZ file is available to download from archived items, provide a regular WACZ
1 participant