Skip to content

[EL-16] The full search reads Openscholar's stored copy of a PDF first - #938

Merged
sickerine merged 4 commits into
mainfrom
feat/paper-pdf-store
Nov 24, 2026
Merged

sickerine merged 4 commits into
mainfrom
feat/paper-pdf-store

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

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

  • storedPdfLink asks 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 full search reads the file from that link before looking anywhere else. The quick search, which runs while pages are written, never asks.
  • A store with no copy, an Openscholar that does not answer, or one that lacks the route yet, leaves the search to go on as before.

The route is on shared dev since OpenDevEd/openscholar#1519.

Checks

  • Typecheck and the fallow gate pass.
  • 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.
  • Reviewed by GPT-6.1 Sol together with the Openscholar route: no findings.

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.
@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: 9340582a-fdd1-4d4a-a819-77dfa913c9ec
  • 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-24T01:00:52.891120Z 6863247 New commits
ℹ️ 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.

…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.
@sickerine
sickerine merged commit d53fc31 into main Nov 24, 2026
7 checks passed
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