Repository navigation
Constructor feed: accept ?page=N - #609
Merged
mdirolf merged 1 commit intoNov 13, 2026
Merged
Conversation
So a reader can go back past the newest ten puzzles from the feed, without loading the constructor's HTML pages. A missing or invalid value is page 0, so existing feed URLs are unchanged; the feed's self link names the page.
Member
|
Thank you! |
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.
Following up on our emails about automated traffic. We archive puzzles from a few Crosshare accounts (student papers, mostly) for the gxd crossword corpus, and we now fetch only the constructor feed and
/api/ipuz/<id>, once a day.The one time we'd still need more than the feed is a backfill past the newest ten puzzles, which today means the constructor's HTML pages. This lets the feed take
?page=N, paged the same way the constructor page is (paginatedPuzzles, 10 per page), so a backfill can stay on the feed. A missing or invalid value is page 0, so existing feed URLs behave as before, and the feed's self link names the page.Testing:
tsc, eslint and prettier pass; against the emulator's demo data,/api/feed/mikeis unchanged,?page=1returns the next (empty) page, and?page=abc/?page=-2return page 0.If you'd rather we didn't page back at all, no problem; we'll do the rare backfill by hand.