Repository navigation
[OS-14] A community reads Openscholar's stored copy of a paper's PDF for nothing - #1519
Merged
Merged
Conversation
…r nothing POST /api/v1/evidence-libraries/papers/stored-pdf answers a community's machine credential with a signed link to the stored copy, by the paper's OpenAlex work or the address a copy was fetched from, or null. Nothing is charged and nothing is bought: only a read inside Openscholar pays.
|
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. |
This was referenced Nov 24, 2026
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 #1518
A new service route,
POST /api/v1/evidence-libraries/papers/stored-pdf, answers a community's machine credential with a signed link, good for an hour, to Openscholar's stored copy of a paper's PDF. The paper is named by its OpenAlex work, by the address a copy was fetched from, or both.linkis null when the store has none.Nothing is charged and nothing is bought: no
paperPdfReadsrow is written and OpenAlex is never asked. A read inside Openscholar still goes throughpaperPdfand pays as before.Evidence Community's import will read this first in its full search (the matching pull request follows once this route is on shared dev).
Checks
npx tsc --noEmitandcheck:convex-rulespass.convex/evidenceLibraries/paperLinks.test.ts, 4 tests. The new one covers a held copy, a paper with none, no charge, a wrong credential and an empty request.