Store the teams list in the background and drop the Equipas helper line #70

Merged
spark merged 3 commits from task/archive-directory-stored into main 2026-10-20 11:31:20 +01:00
Owner

Closes the teams half of the archive directory.

Summary

  • The worker writes archive_team_sides and rewrites it only when a gallery is matched again, a club alias changes, or a known team's name, code or slug changes.
  • GET /directory and the gallery team filter only read that table, limited to folders the viewer can see. Until the first write, the page keeps loading (ready: false) instead of failing.
  • Removed the Equipas sentence "Cada equipa aparece uma vez...".

Test plan

  • CI pnpm -r test (archive directory test)
  • After deploy, hard-reload Equipas on https://ligaportugal.photoreport.pt/?t=equipas: teams appear, the helper sentence is gone, opening a team still filters the games
  • A viewer who cannot see a folder does not get that folder's teams
Closes the teams half of the archive directory. ## Summary - The worker writes `archive_team_sides` and rewrites it only when a gallery is matched again, a club alias changes, or a known team's name, code or slug changes. - `GET /directory` and the gallery team filter only read that table, limited to folders the viewer can see. Until the first write, the page keeps loading (`ready: false`) instead of failing. - Removed the Equipas sentence "Cada equipa aparece uma vez...". ## Test plan - [ ] CI `pnpm -r test` (archive directory test) - [ ] After deploy, hard-reload Equipas on https://ligaportugal.photoreport.pt/?t=equipas: teams appear, the helper sentence is gone, opening a team still filters the games - [ ] A viewer who cannot see a folder does not get that folder's teams
spark added 1 commit 2026-10-20 11:11:23 +01:00
Store the teams list in the background and drop the Equipas helper line.
ci / typescript (pull_request) Failing after 2m9s
ci / rust (pull_request) Successful in 7m33s
9a61e8bf61
The page reads a table the worker rewrites only when a gallery, a club alias, or a known team name changes.
spark added 1 commit 2026-10-20 11:13:27 +01:00
Pass a null sport into the crop when the event has none.
ci / rust (pull_request) Successful in 6m26s
ci / typescript (pull_request) Failing after 9m16s
2f4f509f6f
exactOptionalPropertyTypes rejects undefined, and that is what fails the API build on main.
spark added 1 commit 2026-10-20 11:24:20 +01:00
Expect the agency sharpen after the crop scales it.
ci / rust (pull_request) Successful in 3m49s
ci / typescript (pull_request) Failing after 7m16s
d22ce95b64
A frame that does not keep the whole photo no longer leaves sharpen at 40, which is what the test still asked for.
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-10-20 11:31:20 +01:00
spark merged commit 41eff14356 into main 2026-10-20 11:31:20 +01:00
Sign in to join this conversation.