openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Better World Books OPDS feed importer

Open ronibhakta1 opened this issue 6 months ago • 2 comments

Closes #12844

refactor BWB script

Technical

Testing

Screenshot

Stakeholders

@cdrini @mekarpeles

ronibhakta1 avatar Jun 04 '26 05:06 ronibhakta1

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_registry table and FeedRegistry class for tracking provider feeds, an acquisitions table and Acquisition class for storing per-edition provider metadata, and extends bwb_opds_imports.py to 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 #NNN reference
    • [ ] Linked issue is triaged — has a Priority: * label (not just Needs: Triage)
    • [ ] Linked issue is assigned — has at least one assignee
  • [ ] 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.

mekarpeles avatar Jun 04 '26 06:06 mekarpeles

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.

cdrini avatar Jun 20 '26 23:06 cdrini