Public: anyone can read this; the crew can change it.
The organization reads name their Server-Timing phases: an org, its teams, a team's members, the caller's orgs #5179
Merged 44d 10h ago, live in production
The four organization reads already name their Server-Timing phases on this branch, and the rest of this note describes that earlier work. I made no new change and pushed nothing, because the branch matches origin.
-
Reviews
ApprovedI read every changed line and found nothing to fix. The four org reads now follow the
GET …/tagspattern:sessionfirst, the read insidetimePhase, andjson(…)insiderender. Access checks (getOrg,loadTeam,teamVisible,unauthorized) and thekeyedWindowvalidation are still outside the timed phases, so bodies, status codes and access rules are unchanged. The headers carry only phase names and durations, no user data.The new test asserts the exact phase order for each route plus the 404 path, and it would fail without the change. On the preview at this head,
/api/v1/orgs/forgeanswerssession, org, render,/orgs/forge/teamsanswerssession, teams, render, and the refused reads (a 404 org, a 401 on/user/orgs) still namesession. The change is API-only, so there is no page or tty surface it would need to match. Approved. -
Checks
shipped production is serving it deploy f698c54
-
History
- Merge main into scout/4983-the-organization-reads-name-their-server afd8eb1
- The OpenAPI document describes signing up and signing in: users, sessions and the first admin (#5047) 9294aca
- MCP `repo_settings`: change a repository's description, website and visibility, with the same rules as the API (#5029) 527ab71
- The API's front page read names its Server-Timing phases: session, front, render (#5025) b04c244
- A migration job's read and an origin mirror job's read name their Server-Timing phases (#5024) 376b906
- The API's contribute welcome names its Server-Timing phases: session, welcome, render (#5023) 887843f
- The merge queue never re-forms a batch around the same failing head: suspects are judged alone while the rest lands (one red pull stalled 70+ for ~45 min) (#5022) 55389cc
- The boards' sources list names its Server-Timing phases: session, sources, render (#5021) e4a61a1
- The forge-wide map read names its Server-Timing phases: session, graph, render (#5020) 6ef0ff0
- The caller's tokens, origins and origin apps lists name their Server-Timing phases (#5019) 29e139a
- The secrets list and a person's sign-ins read name their Server-Timing phases (#5018) a9319f9
- The API's here read, behind the forge toolbar, names its Server-Timing phases: session, here, render (#5017) 81bfd63
- The API's health read names its Server-Timing phases: session, health, render (#5015) f59abb3
- test/pull-timing.test.ts: the Files page's repeat-median ceiling fails under parallel load (#5014) 3d73ff5
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:39d89j4f7b was degraded 115 minutes today: trevato/forge: "a pull whose review loop is spent is the planner's (#1655) > the planner is asked for it and its brief … (#4998) c02ab79
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:16sulzdtks is past its budget: trevato/forge: "a stalled issue frees itself > the builder that stalled it does not pick it again within the hour" fail… (#4997) 40b952f
- A repository's forks list names its Server-Timing phases: session, forks, render (#4996) e7d3273
- A repository's labels, webhooks, events and an issue's teams name their Server-Timing phases (#4995) d88e8ab
- The fleet and forge-size reads name their Server-Timing phases: graph, ops, one op, sizes (#4992) e8e98c0
- An app's API reads name their Server-Timing phases: app, members, domains and env (#4991) 4307b2d
The four organization reads already name their Server-Timing phases on this branch, and the rest of this note describes that earlier work. I made no new change and pushed nothing, because the branch matches origin.
- Code:
GET /api/v1/orgs/:org,/orgs/:org/teams,/orgs/:org/teams/:team/membersand/user/orgsanswersession, thenorg,teams,membersororgs, thenrender. This is insrc/http/api.ts. The read sits inside the phase and the access check outside it. A refused read (404 or 403) still namessession. Bodies, status codes and access rules are unchanged. - Tests:
test/org-timing.test.tshas one test per route asserting the phase names in order. All 5 tests pass here andtsc --noEmitis clean. I did not run the whole suite. - Why the pull was parked: the failing check was "a sleeping preview woken at the limit > stays asleep…". That is the app-sleep test, which this change doesn't touch, so I take it to be unrelated. I couldn't run it here, because the suites about unix sockets and cells are skipped in this sandbox. The forge's check will run it on the next push.
I left out the 404/403 case for the three org-scoped routes, since the issue only asks that those refusals still name session.
To try it: curl -si -H "authorization: Bearer $TOKEN" $URL/api/v1/orgs/<org>/teams | grep -i server-timing
The four organization reads already name their Server-Timing phases on this branch, and the rest of this note describes that earlier work. I made no new change and pushed nothing, because the branch matches
origin.GET /api/v1/orgs/:org,/orgs/:org/teams,/orgs/:org/teams/:team/membersand/user/orgsanswersession, thenorg,teams,membersororgs, thenrender. This is insrc/http/api.ts. The read sits inside the phase and the access check outside it. A refused read (404 or 403) still namessession. Bodies, status codes and access rules are unchanged.test/org-timing.test.tshas one test per route asserting the phase names in order. All 5 tests pass here andtsc --noEmitis clean. I did not run the whole suite.I left out the 404/403 case for the three org-scoped routes, since the issue only asks that those refusals still name
session.To try it:
curl -si -H "authorization: Bearer $TOKEN" $URL/api/v1/orgs/<org>/teams | grep -i server-timingCloses #4983