Seed Taça de Portugal (FPF) for the event match picker (#285) #286

Merged
spark merged 2 commits from task/gitea-285-taca-portugal-fpf into main 2026-11-20 18:51:05 +00:00
Owner

Summary

  • Seed the Taça de Portugal (FPF/25263) in ensureCatalog so it is always followed.
  • Parse fixtures from the FPF Details accordion (this cup often has no GetClassificationAndMatchesByFixture links).
  • Fix fpfDate when Cheerio sticks nov and 20:45 together.
  • Document Cloudflare blocking of resultados.fpf.pt from the API hosts.

Ops note

On next, the 16 fixtures of the 4.ª eliminatória (20–22 Nov) were already seeded in the DB so Porto–Paredes tonight appears in Novo evento → Jogo. Automatic FPF refresh from pr-api still fails with Cloudflare 403 until that is unblocked.

Closes #285

Test plan

  • tsx smoke of parseFpfDetailsFixtures / fpfDate("20 nov20:45")
  • CI: apps/api sports unit tests
  • On next after merge: Novo evento → search Porto / Taça
## Summary - Seed the Taça de Portugal (`FPF/25263`) in `ensureCatalog` so it is always followed. - Parse fixtures from the FPF Details accordion (this cup often has no `GetClassificationAndMatchesByFixture` links). - Fix `fpfDate` when Cheerio sticks `nov` and `20:45` together. - Document Cloudflare blocking of `resultados.fpf.pt` from the API hosts. ## Ops note On next, the 16 fixtures of the 4.ª eliminatória (20–22 Nov) were already seeded in the DB so Porto–Paredes tonight appears in Novo evento → Jogo. Automatic FPF refresh from pr-api still fails with Cloudflare 403 until that is unblocked. Closes #285 ## Test plan - [x] `tsx` smoke of `parseFpfDetailsFixtures` / `fpfDate("20 nov20:45")` - [ ] CI: `apps/api` sports unit tests - [ ] On next after merge: Novo evento → search Porto / Taça
spark added 1 commit 2026-11-20 18:14:42 +00:00
Seed Taça de Portugal in the sports catalogue and parse FPF Details fixtures.
ci / rust (pull_request) Successful in 5m55s
ci / typescript (pull_request) Failing after 11m6s
6d4bb4f19e
The cup is FPF (not Liga Portugal); without it the event picker only showed handball. Also fix kick-off parsing when day and time are stuck together in the HTML.
Author
Owner

Linked from #285. DB seed for the 4.ª eliminatória is already live on next; this PR is the durable catalogue/parser fix.

Linked from #285. DB seed for the 4.ª eliminatória is already live on next; this PR is the durable catalogue/parser fix.
Member

@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#286: CI is red on the PR head.

  • Head: 6d4bb4f19e5e
  • Detail: failed contexts: ci / typescript (pull_request)
  • The bot did not approve or schedule a merge for this head.
  • Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run.
@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#286: CI is red on the PR head. - Head: `6d4bb4f19e5e` - Detail: failed contexts: ci / typescript (pull_request) - The bot did **not** approve or schedule a merge for this head. - Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run. <!-- gitea-autopilot-escalation kind=ci_failure sha=6d4bb4f19e5e -->
spark added 1 commit 2026-11-20 18:34:11 +00:00
test(sports): serve FPF Taça Details in the fake site and expect the seeded FPF competition
ci / rust (pull_request) Successful in 4m29s
ci / typescript (pull_request) Successful in 9m42s
bdbb5c364a
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
spark merged commit 7a71ff1d10 into main 2026-11-20 18:51:05 +00:00
Sign in to join this conversation.