You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A join fetches the whole school year twice at the same moment #171
What is broken. A join fetches the whole school year twice at the same moment, and then asks twice more.
Failure scenario (server log, local uvicorn, the same on three separate joins):
POST /api/v1/join 200
GET /api/v1/bundle?start=2026-09-01&days=273 200
GET /api/v1/bundle?start=2026-09-01&days=273 200
GET /api/v1/bundle?start=2026-09-01&days=273 304
GET /api/v1/bundle?start=2026-09-01&days=273 304
Two full downloads of 273 days on two connections within the same second, before either has stored an ETag. The build from fa4fe0c, before #140, does the same (200, 200, 304), so it is older than the diary work.
Likely why.SessionEffects.onActiveClassChanged asks for syncNow and arms the periodic worker in the same breath as the join screen's own first sync, and nothing de-duplicates two syncs of the same year. Not yet traced to the line.
What it costs. On a school's wifi, a year of JSON twice for every phone that joins; on the server, twice the resolver work at exactly the moment a class hands its code out.
Found on a device walkthrough (#116), 26 September 2026.
Activity
Record the first instrumented tests and the three fixes, and what the…