fix(ingest): 1h shooting gap ends open event session (BIT-149) #150

Merged
spark merged 1 commits from task/BIT-149-ingest-hour-gap into main 2026-11-03 13:15:14 +00:00
Owner

Summary

  • Pin only if capture is inside ingestFrom–ingestUntil (not only when archived).
  • If this photographer’s last photo in that event was >1 h earlier, do not keep the pin / skip that event in routing → other event or Sem evento.

Why

Open windows (treino / default +4 h) were still swallowing afternoon shots into the morning event.

Test plan

  • vitest session unit tests
  • tsc --noEmit
  • library integration test when DATABASE_URL_TEST available
## Summary - Pin only if capture is inside `ingestFrom`–`ingestUntil` (not only when archived). - If this photographer’s last photo in that event was **>1 h** earlier, do not keep the pin / skip that event in routing → other event or Sem evento. ## Why Open windows (treino / default +4 h) were still swallowing afternoon shots into the morning event. ## Test plan - [x] `vitest` session unit tests - [x] `tsc --noEmit` - [ ] library integration test when `DATABASE_URL_TEST` available
spark added 1 commit 2026-11-03 13:14:48 +00:00
fix(ingest): end open event session after a 1h shooting pause
ci / rust (pull_request) Successful in 8m0s
ci / typescript (pull_request) Failing after 10m35s
140bdc2d68
Pins and time-based routing only keep an event while capture is inside its
ingest window and this photographer has not gone more than an hour without
a shot there — later bursts go to another matching event or Sem evento.
spark merged commit 341c41b617 into main 2026-11-03 13:15:14 +00:00
Sign in to join this conversation.