Better World Books OPDS feed importer
Closes #12844
refactor BWB script
Technical
Testing
Screenshot
Stakeholders
@cdrini @mekarpeles
Thanks for the PR, @ronibhakta1!
🤖 Copilot has been assigned for an initial review.
The linked issue (#12844) hasn't been triaged yet — triage happens on Mondays and Fridays. There are currently 74 open non-draft PRs ahead of yours.
Possible improvements for this PR
-
[ ] PR description is incomplete — the Technical, Testing, and Screenshot sections are unfilled. For future PRs, please follow the PR template and provide details. Here's a draft based on the diff and linked issue:
This PR implements the first three subtasks of the TBP ingestion pipeline (#12844): it introduces a
tbp_feed_registrytable andFeedRegistryclass for tracking provider feeds, anacquisitionstable andAcquisitionclass for storing per-edition provider metadata, and extendsbwb_opds_imports.pyto extract acquisition records from the BWB OPDS feed and upsert them into the new table. Unit tests are included for all three new modules. -
[ ] No proof of testing — the Testing section is empty and no test output is shown. A brief description of how you ran or validated the changes (e.g. running the test suite locally, a dry-run of the importer) would help reviewers move faster. See how to attach files if you'd like to include output.
PR triage checklist (maintainers / Pam)
- [ ] PR description — not empty; explains what the change does and how to verify it
- [x] References an issue — PR body contains a
#NNNreference- [ ] Linked issue is triaged — has a
Priority: *label (not justNeeds: Triage) - [ ] Linked issue is assigned — has at least one assignee
- [ ] Linked issue is triaged — has a
- [ ] Commit history clean — no WIP/fixup/conflict noise; commit messages are meaningful (note: history includes a merge commit from
12844/feature/tbp-feed-registry; consider rebasing) - [x] CI passing — no failing check-runs
- [x] Test cases present — if the change touches substantive logic, test coverage exists or is explained
- [ ] Proof of testing — PR body includes a description of what was tested, a screenshot, or a video
[!NOTE] This comment was automatically generated by Pam, Open Library's Project AI Manager, on behalf of @mekarpeles. Pam is designed to provide status visibility, perform basic project management functions and relevant codebase research, and provide actionable feedback so contributors aren't left waiting.
Pushed up CR feedback from #12851 ; apologies likely causes some issues with some of the other code! Continuing to review/push up fixes over the weekend. I will review #12846 next, and push up any small CR fixes here, before reviewing this one and giving everything a test.