#613
github: share the identity, calendar and board totals across panes
Several github panes with the same accounts and window make one board pass per refresh between them.
Context / problem
github asks for the viewer, the contribution calendar and one aggregate query per account each pass. Every pane repeats it. Part of stealth-factory/opscope#630. This is the first half of github's change; day counts and landed timing follow in the next issue.
Scope
In:
- Readings: who the token belongs to, the calendar (independent of the window), and the board totals for all accounts.
- The board stays one reading, so every account is counted against the same 24-hour cut, as today.
- A failed account travels inside the reading and shows as failed on every pane, never as zero.
fetchedon screen is the reading's own time.- Rate-limit record, freshness row,
share_readings, example and docs.
Out:
- Day counts and merged-PR timing.
- The oldest-PR lookup (
fetch_oldest).
Acceptance
- Two panes with the same accounts and window make one board pass.
- A failed account shows as failed on other panes.
- Panes on different windows still share the identity and the calendar.
Agent notes
one_pass()main.rs:2574-2857;build_query:2236 (8 aliases per account); one pinnedrolling_nowper pass (:2691);fetchedstamped at :2891.- Keys:
gh.who/1:{host}:{fp},gh.calendar/1:{host}:{fp},gh.board/1:{host}:{fp}:{hash(accounts)}:{days}. one_passpublishes progressively intoby_acc; this is the largest refactor of the set.
OPS-288