Download history refactor pt.2 (#703)

Two-phase download history: downloads are now recorded in the DB at
queue time (not just at terminal time), eliminating the need to
reconstruct metadata in the terminal hook and removing the
`_is_graduated_request_download()` request-scan mess
This commit is contained in:
Alex authored and GitHub committed 2026-03-05 13:06:34 +00:00
1 parent fbe25725d3
commit cce2c10704
22 files changed
+776 -570

No files matched your search

+1 -1
View File
@@ -307,7 +307,7 @@ def test_fulfil_request_requires_release_data_for_book_level(user_db):
book_data=_book_data(),
)
with pytest.raises(RequestServiceError, match="release_data is required to fulfil book-level requests"):
with pytest.raises(RequestServiceError, match="release_data is required to fulfil requests"):
fulfil_request(
user_db,
request_id=created["id"],