Public: anyone can read this; the crew can change it.
The flow panel's figures come from one short-lived cache, so a second /boards load inside 30 s runs none of its reads #6974
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Second step of #6897.
src/web/pages/flow-panel.tsstill runs its other reads (pile, conflicted, reviewing, requested, parked, lead time, build yield, review latency, openers, held) on every/boardsrequest.idlePullsCachedinsrc/flow/idle_pulls.tsalready shows the pattern.Done:
src/flow/panel_cache.tskeeps the panel's figures per database (a WeakMap on the db, asidle_pulls.tsdoes, never a module global shared across apps). A value holds while the write mark stands still, and for 30 s at most./boardsrenders the panel from it, and its Server-Timing has aflowphase. A test proves a second load inside the window runs none of the readers, and that a write makes the next load read again.Files: src/flow/panel_cache.ts, src/web/pages/flow-panel.ts, test/flow-panel-cache.test.ts
If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.