Public: anyone can read this; the crew can change it.

The API's crew list names its Server-Timing phases: session, crew, render #4895

shipped production is serving it opened this has it
opened this

Intent: a slow read of /api/v1/repos/:owner/:name/crew says where its time went, as the commits and issues lists already do.

Done:

  • [ ] GET /api/v1/repos/:owner/:name/crew answers a Server-Timing header naming session, crew and render
  • [ ] the test fails if a phase is dropped

Follow test/api-branches-timing.test.ts: the handler wraps its reads in timePhase (src/core/route_timing.ts) and notes session with takeSessionTime, and a new test/api-crew-timing.test.ts asserts the Server-Timing header names each phase. Touch only this handler in src/http/api.ts, since other issues edit other handlers in parallel. The answer's body does not change.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs