Skip to content

Conversation

@jamesbraza
Copy link
Collaborator

@jamesbraza jamesbraza commented Aug 11, 2025

Accounting for deprecations from https://unpaywall.org/data-format

Also, updating for "High-throughput screening of human genetic variants by pooled prime editing" having a new 'latest' DOI.

@jamesbraza jamesbraza self-assigned this Aug 11, 2025
@jamesbraza jamesbraza added the bug Something isn't working label Aug 11, 2025
Copilot AI review requested due to automatic review settings August 11, 2025 17:30
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 11, 2025
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 restores the UnpaywallProvider functionality by updating expected responses to account for API deprecations documented at https://unpaywall.org/data-format. The main changes involve updating test fixtures and test data to reflect the new API response format and different DOI/publication information.

  • Updates test data to use a different paper with newer publication details (2025 vs 2024)
  • Reorganizes API call sequences in test cassettes to reflect updated Unpaywall responses
  • Updates timestamps and response headers in HTTP cassettes to current dates

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_clients.py Updates test assertions with new paper metadata including DOI, journal, and citation information
tests/cassettes/test_doi_search[paper_attributes4].yaml Reorders API calls and updates response timestamps
tests/cassettes/test_doi_search[paper_attributes3].yaml Updates citation counts and API response timestamps
tests/cassettes/test_doi_search[paper_attributes2].yaml Adds new Unpaywall API call and updates response format
tests/cassettes/test_doi_search[paper_attributes1].yaml Adds Unpaywall API response and updates metadata format

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 11, 2025
@jamesbraza jamesbraza force-pushed the restoring-unpaywall branch from 197e70c to 506fd43 Compare August 11, 2025 19:12
@jamesbraza jamesbraza merged commit 34ceb70 into main Aug 11, 2025
5 checks passed
@jamesbraza jamesbraza deleted the restoring-unpaywall branch August 11, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants