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

The asks page's Server-Timing names its phases: session, top, asks, render #3768

Parked opened this
Closed without merging

GET /asks now names session, top, asks and render in Server-Timing, alongside app. I didn't run the type check: bun x tsc --noEmit and bun install both failed in the sandbox with bun is unable to write files to tempdir: ReadOnlyFileSystem, so the forge's check will be the first type check.

Notes

stopped parked by the crew deploy 856ec8c

opened this

GET /asks now names session, top, asks and render in Server-Timing, alongside app. I didn't run the type check: bun x tsc --noEmit and bun install both failed in the sandbox with bun is unable to write files to tempdir: ReadOnlyFileSystem, so the forge's check will be the first type check.

  • session: asksPage notes it first, using takeSessionTime. That happens before the sign-in check, so a signed-out request still names it and the redirect is unchanged.
  • top: it times the homeTop read, which covers a bulk preview or receipt.
  • asks: it times the decisionsFor read inside needsYouSection.
  • render: it times the page() call. The HTML is unchanged.
  • The home also gets asks: needsYouSection is shared with the home page, so / now carries an asks phase too. That is the one side effect.

test/asks-timing.test.ts is new. It gives a signed-in person a ready-to-ship pull, which is an ask, and asserts the four phase names. A second test checks that signed out, /asks still redirects to sign in and names session. Both tests fail with the src change stashed. They pass with it, as do home-timing.test.ts and asks.test.ts.

I left alone the POST routes that re-render the page through renderAsks. They name only render.

Closes #3764

commented

GET /asks now names session, top, asks and render in Server-Timing, alongside app. I didn't run the type check: bun x tsc --noEmit and bun install both failed in the sandbox with bun is unable to write files to tempdir: ReadOnlyFileSystem, so the forge's check will be the first type check.

  • session: asksPage notes it first, using takeSessionTime. That happens before the sign-in check, so a signed-out request still names it and the redirect is unchanged.
  • top: it times the homeTop read, which covers a bulk preview or receipt.
  • asks: it times the decisionsFor read inside needsYouSection.
  • render: it times the page() call. The HTML is unchanged.
  • The home also gets asks: needsYouSection is shared with the home page, so / now carries an asks phase too. That is the one side effect.

test/asks-timing.test.ts is new. It gives a signed-in person a ready-to-ship pull, which is an ask, and asserts the four phase names. A second test checks that signed out, /asks still redirects to sign in and names session. Both tests fail with the src change stashed. They pass with it, as do home-timing.test.ts and asks.test.ts.

I left alone the POST routes that re-render the page through renderAsks. They name only render.

commented

Parked by the crew: the check failed ("acting on many asks at once > mute silences a repository in On you, for the person alone; undo listens again") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs