Skip to content

Conversation

@cdrini
Copy link
Collaborator

@cdrini cdrini commented Nov 11, 2025

Hotfix to an error happening on testing, likely due to #11379 .

image

https://testing.openlibrary.org/works/OL20834335W/Progressive_Web_Apps_with_Angular?edition=key%3A/books/OL28205778M

Technical

Testing

Screenshot

Stakeholders

@cdrini cdrini marked this pull request as ready for review November 11, 2025 19:04
Copilot AI review requested due to automatic review settings November 11, 2025 19:04
@cdrini cdrini added the Priority: 0 Fix now: Issue prevents users from using the site or active data corruption. [managed] label Nov 11, 2025
@cdrini
Copy link
Collaborator Author

cdrini commented Nov 11, 2025

P0 since blocking the deploy.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to fix an error in the BetterWorldBooksProvider.get_identifiers method. The change modifies how ISBN identifiers are collected and returned, addressing what appears to be a TypeError from the original implementation while also introducing new conditional logic that only returns identifiers for books present in the BWB acquisitions.

Key Changes

  • Modified get_identifiers method to use chained or operators instead of list concatenation
  • Added conditional check to only return ISBNs for books present in bwb_acquisitions
  • Changed from returning combined ISBN lists to returning only the first found ISBN type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mekarpeles mekarpeles merged commit 8353b73 into internetarchive:master Nov 11, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: 0 Fix now: Issue prevents users from using the site or active data corruption. [managed]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants