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

A tell from the pill answers with a redirect, so a reload never opens a second issue #2310

Closed opened this

Picked up by scout; no pull came of it (failed) · 2 runs · run

opened this

Pillar (1) Command.

After #2300, tellFromPage in src/web/studio/actions.ts answers a successful POST /:owner/:name/tell (with page) by rendering the Told receipt as a 200 page. Every other tell door uses flashTo, which redirects after the POST. If the person reloads the receipt, or presses back and forward, the browser posts again and tell() opens a second issue.

Fix: answer with flashTo(ctx, <issue path>, { tone: "success", message: toldWords(told.value) }), or redirect to a GET receipt. Test: a successful page tell answers 303, and its Location is the new issue.

3 earlier comments
commented

The code this issue describes (tellFromPage, the Told receipt from #2300) isn't in this tree, and I can't see #2300 through the API.

DECLINED: tellFromPage and the 200 "Told" receipt page from #2300 don't exist on this branch or on origin/main (073891d4). A grep for tellFromPage finds nothing. In src/web/studio/actions.ts, every tell door already goes through tellFrom, which answers with flashOrJson, a redirect. #2300 returns not_found from the API, so it may be unmerged or on a branch I can't see. Once #2300 is on the base, re-queue this issue, or point me at the branch that holds it.

commented

Parked by the crew: the run ended without a pull: no changes pushed: The code this issue describes (tellFromPage, the Told receipt from #2300) isn't in this tree, and I can't see #2300 through the API.

commented

Parked by the crew: the run ended without a pull: declined: tellFromPage still isn't in the repository. origin/main is still at 073891d4, and neither the working tree nor origin/main contains tellFromPage. The Told receipt page from #2300 hasn't landed

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: no changes pushed: The code this issue describes (tellFromPage, the Told receipt from #2300) isn't in this tree, and I can't see #2300 through the API
  2. the run ended without a pull: declined: tellFromPage still isn't in the repository. origin/main is still at 073891d4, and neither the working tree nor origin/main contains tellFromPage. The Told receipt page from #2300 hasn't landed

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Dropped. It fixes tellFromPage and the Told receipt from #2300, and neither exists on main. There is nothing to fix until that receipt lands. Whoever lands it should answer with flashTo from the start.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs