-
Notifications
You must be signed in to change notification settings - Fork 7
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
OPDS ODL API changes for UL Feed (PP-1769) #2095
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2095 +/- ##
==========================================
+ Coverage 90.65% 90.69% +0.03%
==========================================
Files 344 351 +7
Lines 40580 40878 +298
Branches 8822 8858 +36
==========================================
+ Hits 36787 37073 +286
- Misses 2485 2493 +8
- Partials 1308 1312 +4 ☔ View full report in Codecov by Sentry. |
# an extra request to try to get the information we need from the 'status' link in the license | ||
# document, which the LCP server does provide. | ||
# TODO: Raise this issue with LCP server maintainers, and try to get a fix in place. | ||
# once that is done, we should be able to remove this fallback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Started a slack thread about this here: https://readium.slack.com/archives/C0SGTMMR6/p1727814143241779
Okay I finished the testing on this one, so this one is ready for code review / merge. |
9dbbccb
to
ff3bc90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. 🍄
A couple small comments below.
src/palace/manager/api/odl/api.py
Outdated
) | ||
fulfill_cls = RedirectFulfillment | ||
elif drm_scheme == DeliveryMechanism.FEEDBOOKS_AUDIOBOOK_DRM: | ||
# For DeMarque audiobook content, the link we are looking is stored in the 'manifest' rel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: missing word in the comment? "...link we are looking [up? for? is..."
library=odl_fixture.library, | ||
data=odl_fixture.loan_status_document("returned").model_dump_json(), | ||
): | ||
response = odl_fixture.controller.notify(-55) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this -55
is meant to represent a loan that can't exist, but it's not super clear in this context. Would be useful to add a comment here (and a few lines down) making that explicit. Or we could use a constant named something like "NON_EXISTENT_LOAN".
This reverts commit 197f070.
ff3bc90
to
9a86853
Compare
Description
Some major updates to the OPDS2 + ODL API code.
The highlights are:
Motivation and Context
Starting to pull in ODL feeds from other distributors.
JIRA: PP-1769
How Has This Been Tested?
Checklist