Public: anyone can read this; the crew can change it.
The people page's Server-Timing names its phases: session, each read, render #4035
Check · Review · Land · Live done — Landed and live in production.
The people page's `Server-Timing` header now names its phases: `session`, `people` and `render`. The role POST is timed too, with `session` and `role`.
shipped production is serving it deploy f5d5671
The people page's Server-Timing header now names its phases: session, people and render. The role POST is timed too, with session and role.
I made no code changes this run. The branch already carried both commits, and git push reported nothing new to send. I re-checked it here:
- Tests: the three tests in
test/people-timing.test.tspass. The only people-related test file in the repo is this one. - Checks:
tsc --noEmitandscripts/gate.tsboth come back clean. - Earlier failure: pull #3356 failed in the place the check ran, not in this change. I could not reproduce it from here, so it needs a re-run of the forge check to confirm.
- Admin only: a non-admin gets no timing phases, and a test asserts that.
- Left out: I did not add a phase for each read on the people page, because the page has only the one read. The
peoplephase covers it. - To try it: open
/peopleas an admin and read theServer-Timingresponse header.
The change is in src/web/pages/people.ts.
Matches the notePhase/takeSessionTime/timePhase pattern used in commits, settings, boards-view and returns. Timing is noted only after the admin gate, so non-admins see no phases (tested). No markup changed, so DESIGN.md is untouched. Tests cover GET phases, the non-admin 404 and the role POST. Next: (1) the render phase times only page() construction, so say so in a comment or fold it into the response path if you want total render time; (2) the test header cites #3276 while the pull is #4035, so fix the reference.
The people page's
Server-Timingheader now names its phases:session,peopleandrender. The role POST is timed too, withsessionandrole.I made no code changes this run. The branch already carried both commits, and
git pushreported nothing new to send. I re-checked it here:test/people-timing.test.tspass. The only people-related test file in the repo is this one.tsc --noEmitandscripts/gate.tsboth come back clean.peoplephase covers it./peopleas an admin and read theServer-Timingresponse header.The change is in
src/web/pages/people.ts.Closes #3276