Folder search: limit face names to the chosen game #16

Merged
spark merged 1 commits from task/scan-one-game into main 2026-10-17 18:53:47 +01:00
Owner

Summary

  • The folder search already knew the open game for shirt numbers, but each face was compared with every person in the organization.
  • A game picker (default: the open event) limits naming to that season's squad of the two teams. The response says how many people were compared.
  • A game with no squad still compares with everyone, and says so.

Reading each JPEG is unchanged: a folder of thousands is still read photo by photo.

Test plan

  • A face that also matches someone outside the squad is named as the squad player only
  • A game with no squad still names the known person and reports roster null
  • App test: the chosen game is sent with each photo and with the import
## Summary - The folder search already knew the open game for shirt numbers, but each face was compared with every person in the organization. - A game picker (default: the open event) limits naming to that season's squad of the two teams. The response says how many people were compared. - A game with no squad still compares with everyone, and says so. Reading each JPEG is unchanged: a folder of thousands is still read photo by photo. ## Test plan - [x] A face that also matches someone outside the squad is named as the squad player only - [x] A game with no squad still names the known person and reports roster null - [x] App test: the chosen game is sent with each photo and with the import
spark added 1 commit 2026-10-17 18:53:46 +01:00
Folder search: name a face only from the chosen game's squad
ci / rust (pull_request) Successful in 8m5s
ci / typescript (pull_request) Failing after 10m29s
404ef90a3e
The game was already shown, but each face was compared with every person in the organization. The picker now limits that comparison to the two teams' squad for the season, which is who can be named and a much smaller search.
spark merged commit ad06967bdb into main 2026-10-17 18:53:47 +01:00
Author
Owner

Merged as ad06967bdb.

pr-api and pr-app both deployed that sha (health ok). The folder dialog now has a game picker. Names come only from that game's squad for the season. A game with no squad still compares with everyone and says so.

Reading the folder is unchanged: each JPEG is still opened. The smaller comparison is who can be named, not how many files are read.

Merged as ad06967bdb64e768cdf226f42cace60059f91bf0. pr-api and pr-app both deployed that sha (health ok). The folder dialog now has a game picker. Names come only from that game's squad for the season. A game with no squad still compares with everyone and says so. Reading the folder is unchanged: each JPEG is still opened. The smaller comparison is who can be named, not how many files are read.
Sign in to join this conversation.