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
2026-03-05 13:06:34 +00:00
committed by GitHub
parent fbe25725d3
commit cce2c10704
22 changed files with 776 additions and 570 deletions
+1 -1
View File
@@ -922,7 +922,7 @@ class TestRequestRoutes:
fulfil_resp = client.post(f"/api/admin/requests/{request_id}/fulfil", json={})
assert fulfil_resp.status_code == 400
assert "release_data is required to fulfil book-level requests" in fulfil_resp.json["error"]
assert "release_data is required to fulfil requests" in fulfil_resp.json["error"]
def test_admin_fulfil_book_level_request_manual_approval(self, main_module, client):
user = _create_user(main_module, prefix="reader")