Publish ZeroZero photos onto the public game after upload #310

Merged
spark merged 1 commits from task/zerozero-publish-game into main 2026-11-26 20:31:40 +00:00
Owner

Summary

  • A ZeroZero upload only lands on the photographer desk. The public game stays empty until POST /api/photo-sync/<image> (or POST /api/photo-sync/match/<game> when the single-photo route is missing or forbidden).
  • Deliveries now do that publish before they are marked done. A file the desk already had (synced-…) publishes the game, because there is no image id.

Test plan

  • Unit tests cover one photo, game fallback on 404 and on 403, a placeholder id, a retryable desk failure, and a hard stop when both routes refuse the account.
  • Delivery integration test records /api/photo-sync/img-1 and img-2. Not run here: local photoreport_test has a failed vector migration (pgvector extension missing).
  • After deploy, send one photo to https://fotos.zerozero.pt/edicoes/219039/12627743 and confirm the public count moves, not only the desk.
## Summary - A ZeroZero upload only lands on the photographer desk. The public game stays empty until `POST /api/photo-sync/<image>` (or `POST /api/photo-sync/match/<game>` when the single-photo route is missing or forbidden). - Deliveries now do that publish before they are marked done. A file the desk already had (`synced-…`) publishes the game, because there is no image id. ## Test plan - [x] Unit tests cover one photo, game fallback on 404 and on 403, a placeholder id, a retryable desk failure, and a hard stop when both routes refuse the account. - [ ] Delivery integration test records `/api/photo-sync/img-1` and `img-2`. Not run here: local `photoreport_test` has a failed `vector` migration (pgvector extension missing). - [ ] After deploy, send one photo to https://fotos.zerozero.pt/edicoes/219039/12627743 and confirm the public count moves, not only the desk.
spark added 1 commit 2026-11-26 20:12:09 +00:00
Publish ZeroZero photos onto the public game after upload.
ci / rust (pull_request) Successful in 4m15s
ci / typescript (pull_request) Successful in 10m36s
28f08bc5bc
The desk keeps a file until photo-sync runs, so a delivery was done while the game stayed empty.
paperclip-review-bot left a comment
Member

auto-approve: CI success on 28f08bc5bc (gitea_auto_approve_open_prs_once.py)

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

auto-approve: CI success on 28f08bc5bc (gitea_auto_approve_open_prs_once.py)

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

auto-approve: CI success on 28f08bc5bc (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 28f08bc5bcc9 (gitea_auto_approve_open_prs_once.py)
spark merged commit 63b021cec8 into main 2026-11-26 20:31:40 +00:00
Sign in to join this conversation.