Repository navigation
fix(events): paginate Dice.fm imports and window Ticketmaster geo queries - #4111
Merged
Merged
Conversation
…ries Dice.fm (#4107): follow links.next / page[number] until exhausted, with an 80-page cap (warning logged when hit), optional horizon_days, country filter across all pages, and nearest-date-first ordering under a new default max_items of 100 so big-city backlogs drain over several runs. Ticketmaster (#4108): when a geo query reports totalElements above the 1,000-event deep-paging reach, split it into consecutive startDateTime/endDateTime windows (probed with size=1, halved down to one day) and paginate each; windows still over the cap log the existing truncation warning.
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.
Closes #4107
Closes #4108
Summary
Big-city imports now reach every upcoming event the source offers, not just the first page or the first 1,000 results.
links.next/page[number]until the pages run out. There's an 80-page cap that logs a warning when hit, an optionalhorizon_days, and the country filter now applies across all pages. Events are processed nearest-date-first under a defaultmax_itemsof 100, so a big-city backlog (about 5.3k for London) drains over several daily runs, starting with the soonest shows.totalElementsabove the 1,000-event deep-paging limit, it's split into consecutivestartDateTime/endDateTimewindows. Each window is probed withsize=1and halved down to one day if needed, then paginated. A window still over the cap logs the existing truncation warning. Queries under 1,000 are unchanged.DiceFmPaginationTest,TicketmasterGeoWindowTest, plus an updatedTicketmasterHandlerTest.Operator note
The first runs after deploy will pull large backlogs: about 5k London Dice events and about 2.3k extra NYC Ticketmaster events. The per-run
max_itemsthrottle spreads that over days. The events site AI step now runs ongpt-6-luna.Provenance
Produced by Homeboy Cook
agent-task-49fb75ee-aa52-42b7-8139-2eadcfb06268. Gated candidate0fedc30f7passedhomeboy review lint data-machine-events --changed-since origin/mainandhomeboy review test data-machine-eventson homeboy-lab. The Cook stalled inpublishing(known issue), so Extra Chill Bot pushed the gated commit unchanged and opened this PR by hand.A parallel Cook (
agent-task-7db775a3, candidate062d0e7b4) wrote an overlapping fix for both issues, because both Cook briefs pointed at both handlers. Only this candidate is being shipped. The other was not pushed as a PR.AI disclosure
Code: Homeboy Cook (Claude). PR opened by Extra Chill Bot (Claude) on Chubes' authorization.