Repository navigation
fix: resolve the latest arXiv date within its own archive - #18
Merged
Merged
Conversation
Open
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.
The dedicated arXiv page initially defaulted to the newest mixed-news date. When that day contained only security stories, opening latest preprints showed an empty list even though an older capture contained papers.
The existing news API now supports explicit all/arxiv/security scopes and resolves the latest nonempty date for a scoped request without a date. Explicit dates still return their own empty state. Both the arXiv and security-news pages use the date/content returned by that API. Date changes clear prior rows before loading so a failed new request cannot display old rows under the new date. Shared source recognition remains in the Go catalog; the duplicate frontend classifier is removed. No new metadata field or client search loop is added.
Validation: the real HTTP regression first failed by returning the newer security story for source=arxiv. It now covers latest scoped date, default all-source behavior, explicit empty dates and invalid scope. The existing desktop/mobile/subpath scenarios additionally check both channels' initial scoped dates before exercising historical pagination and filters. Windows full Go/vet and frontend typecheck/build passed. Complete Linux CI passed Go race/vet, formatting, 35 browser scenarios, production /news build and native package at b406778: https://github.com/FastR-D/FastNews/actions/runs/44920651310 . Two existing entry-canonicalization cases skip desktop/mobile and pass in their applicable subpath project.
All eight files and both commits were reviewed. Net diff: production +76/-38, scenarios +48/-0, docs +2/-0. The extra state holds the server-resolved date separately from an optional explicit URL date; no derived date is requested from the user or model, and one backend source rule serves both views.
Advances #1; external conference access/model quality acceptance remains separate. No dependency, timeout, data migration, live model call or deployment is involved.