web: jour fixe report submit snapshots its draft and handles leaving or submitting twice while a read is pending
tsk-v19hvsnd9xx5 Done Maity Coder Claude 001
Follow-up from the #2428 review. While the preferences read of a jour fixe report is pending, another submit or a change to triage is still possible. The handler copies summary and findings before waiting but reads triage and reasons afterwards, and if the view is left while waiting the callback can still submit to the original round. Snapshot the whole draft at submit, decide cancel-on-leave and duplicate-submit behaviour explicitly, and add smoke checks that exercise pending promises. Also check the owner-series dashboard: a non-moderating circle owner without project admin rights may list answers by the server, but the all-answers section is hidden (existing, predates #2428).
Notes
Maity Test Team · Dec 5, 2026, 23:35 UTC
Tester result for #2435 at head 64c92322 (64c923222c1d301dfb22e0b51446263befa5b186): PASS.
- Web smoke on the exact head (the three smoke-run steps from
web/Makefile, each run throughtools/run_slot.sh, since this box has nomake):smoke.js,notifications-stream.jsandlanding-js.jsall exited rc=0. 3835 ok, 0 FAIL. All 5 new cases are ok:
- the draft as it was at the click is sent
- one send at a time, Send disabled while it waits and freed by a failed read
- left while the preferences are read, nothing is sent
- a decision without its reason reads no preferences
- in an owner's series its circle owner reads the answers, not the admin team
- Revert counter-check: kept the new smoke cases and put back main's
web/js/jour-fixe-act.js.smoke.jsrc=1, 5 failure(s). Each of the 5 new cases FAILs once (1 FAIL per case) and nothing else fails. Restored the file afterwards (worktree clean). - e2e jour fixe: not run this time.
- Web smoke on the exact head (the three smoke-run steps from
Maity Test Team · Dec 6, 2026, 00:48 UTC
Tester result for #2435 round 2 at head 91c88424 (91c884244f05ffa3b05c2ad8fede7425361238b5, merge of main f0bb9797): PASS.
- Web smoke on the exact head:
smoke.jsrc=0 with 3823 ok and 0 FAIL.notifications-stream.jsandlanding-js.jsboth ran rc=0. - Revert counter-check: I kept the new smoke cases and put back main's
web/js/jour-fixe-act.js(origin/main f0bb9797).smoke.jsran rc=1 with 3817 ok and 6 FAIL. Each new case fails exactly once, and nothing else fails:
- the draft as it was at the click is sent: 1 FAIL
- one send at a time, Send disabled while it waits and freed by a failed read: 1 FAIL
- left while the preferences are read, nothing is sent: 1 FAIL
- a form drawn again while the report is out sends no second one, and shows the round reported once it went through (the two-form case): 1 FAIL
- a decision without its reason reads no preferences: 1 FAIL
- in an owner's series its circle owner reads the answers, not the admin team: 1 FAIL
I restored the file afterwards and the worktree is clean.
- The e2e jour fixe was not run.
- Web smoke on the exact head:
Maity Test Team · Dec 6, 2026, 02:15 UTC
Tester result for #2435 round 3 at head 7888b574 (7888b57431f27e13ce4e4769415719b5c069583d): PASS.
- Web smoke on the exact head:
smoke.jsrc=0 with 3828 ok and 0 FAIL ("all ok"). - Revert counter-check: I kept the new smoke cases and put back main's
web/js/jour-fixe-act.jsandweb/js/jour-fixe.js(origin/main f0bb9797).smoke.jsran rc=1 with 3817 ok and 11 FAIL. Each of the 11 new cases fails exactly once, and nothing else fails:
- the draft as it was at the click is sent, not what changed while the preferences were read: 1
- one send at a time, Send disabled while it waits and freed by a failed read: 1
- left while the preferences are read, nothing is sent: 1
- a form drawn again while the report is out sends no second one, and shows the round reported once it went through: 1
- a form drawn from a read made before the report went through sends nothing and the round is read again: 1
- a form drawn from a round read served before the report went through sends nothing and the round is read again: 1
- a waiting form answered before it is attached draws the round again on success, is freed with its draft on failure: 1
- a waiting form drawn over in the same view does not draw the round again; the one that stands does, once: 1
- drawn again in place while POST #1 is out, the round is read and drawn once on success, not at all on failure: 1
- a decision without its reason reads no preferences: 1
- jour fixe answers: in an owner's series its circle owner reads them, not the admin team: 1
I restored both files afterwards and the worktree is clean.
- The e2e jour fixe was not run.
- Web smoke on the exact head: