Repository navigation
[EL-16] The full search reads Openscholar's stored copy of a PDF first - #938
Merged
Merged
Conversation
A community reads a copy Openscholar's store already holds for nothing: one request to Openscholar for a signed link, then the file. The quick search never asks. A store that has no copy, or does not answer, leaves the search to go on.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…eft alone Seen on the Sources QA community after its first import with the shared downloader: "refuses automated requests (Host left alone: Cloudflare challenge)". The second half is the search's own wording for a link it did not ask again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of OpenDevEd/openscholar#1518
The full search for a PDF now reads Openscholar's stored copy first. Openscholar keeps every paper PDF it fetches or buys, and a community may read those copies for nothing. A community still never buys one.
What changes
storedPdfLinkasks Openscholar's new route,POST /api/v1/evidence-libraries/papers/stored-pdf, for a signed link to its copy of the paper, by OpenAlex work and by the record's link.The route is on shared dev since OpenDevEd/openscholar#1519.
Checks
tests/unit/openalex-pdf-download.test.ts, 5 tests. The new one covers a held copy, a failing store and the quick search not asking.