Skip to content

[OS-14] A community reads Openscholar's stored copy of a paper's PDF for nothing - #1519

Merged
sickerine merged 2 commits into
devfrom
feat/paper-pdf-store
Nov 24, 2026
Merged

sickerine merged 2 commits into
devfrom
feat/paper-pdf-store

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

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. link is null when the store has none.

Nothing is charged and nothing is bought: no paperPdfReads row is written and OpenAlex is never asked. A read inside Openscholar still goes through paperPdf and 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 --noEmit and check:convex-rules pass.
  • 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.

…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.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ac11a329-1e8f-4205-9130-55a6a391ac02
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T00:34:16.632130Z d04a9d6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant