Read the Taça from the Joga+ API when the HTML site is blocked #289

Merged
spark merged 1 commits from task/gitea-287-joga-client into main 2026-11-20 22:08:47 +00:00
Owner

Summary

  • The worker reads the Taça de Portugal calendar and squads from the Joga+ app API when FPF_JOGA_API_KEY and FPF_JOGA_ACCESS_TOKEN are set.
  • An existing kick-off stays on the teams it already has. A Liga squad is not replaced. An empty FPF team gets the app squad (names and headshots, source lineup). Shirt numbers still come from Liga or the match sheet.
  • Credentials stay in the server .env. They are not in this pull request.

Issue: #287

Test plan

  • vitest unit tests for club matching, fixture pick, player names, token refresh, and leaving a stored cup fixture alone
  • tsc --noEmit for the API package
  • After merge, confirm /health is the merge commit and the worker log says it is reading the cup
## Summary - The worker reads the Taça de Portugal calendar and squads from the Joga+ app API when `FPF_JOGA_API_KEY` and `FPF_JOGA_ACCESS_TOKEN` are set. - An existing kick-off stays on the teams it already has. A Liga squad is not replaced. An empty FPF team gets the app squad (names and headshots, source lineup). Shirt numbers still come from Liga or the match sheet. - Credentials stay in the server `.env`. They are not in this pull request. Issue: https://git.bitreport.pt/BitReport.pt/photoreport/issues/287 ## Test plan - [x] `vitest` unit tests for club matching, fixture pick, player names, token refresh, and leaving a stored cup fixture alone - [x] `tsc --noEmit` for the API package - [ ] After merge, confirm `/health` is the merge commit and the worker log says it is reading the cup
spark added 1 commit 2026-11-20 21:56:17 +00:00
Read the Taça from the Joga+ API when the HTML site is blocked.
ci / rust (pull_request) Successful in 7m8s
ci / typescript (pull_request) Successful in 10m45s
d145d7a389
Cloudflare stops the datacentre from opening resultados.fpf.pt. The app API still returns the calendar and headshots, and a Liga squad is left as Liga published it.
spark merged commit cd9f0c3882 into main 2026-11-20 22:08:47 +00:00
Sign in to join this conversation.