Commit Graph
7 Commits
Author SHA1 Message Date
Lauri Ojansivu 9ad9813c09 Let a board admin resolve a Scrum undo or redo that stopped on a conflict.
A Scrum History undo, redo or restore keeps a checkpoint that blocks every
Scrum edit on its board until it finishes, and only its author could retry
it, with the same plan. When somebody else had changed one of its records,
its History row changed or its author lost write access, every retry failed
the same way, the checkpoint could not be discarded online or offline, and
the board's Scrum edits stayed blocked for good.

A retry that fails for a reason the next one would meet again now marks its
checkpoint. A board administrator sees such a checkpoint in the History
recovery notice and can roll it back, which restores every record it wrote
to the saved "before" value and revision and is offered only when nobody
changed those records since and none of its History was written, or keep the
board as it is, which removes the checkpoint and writes nothing while
reporting how much of the operation had been written. A checkpoint that has
not stopped on a conflict stays its author's to retry. The resolution names
the checkpoint it resolves, so a repeat is a no-op; it claims the checkpoint
by compare-and-set, fencing the author's workers, waits for an in-flight
write, and checks every record before and after its own writes. Each one is
recorded in Admin Panel / Problems / Recovery. The offline command
releases/recover-scrum-history.cjs does the same with every writer stopped.

Unit, integration (against MongoDB 7), Meteor and Playwright tests cover
rollback, discard, refusals, concurrency and the offline command. New text
is in English, pending Transifex.

Thanks to xet7 !
2026-10-08 12:06:49 +03:00
Lauri Ojansivu 6b44f61b2a Bind keyed Scrum undo and redo to their original selection
Accept optional caller-persisted request IDs in the History methods. Store immutable selections before mutation and reconcile completed requests without advancing the stack again. Keep empty and unsupported results stable; require fresh access and retain conflicting or missing recovery evidence.

Verify selection races, lost cleanup, concurrent redo, browser reload and private storage with Node, MongoDB, full-app and Chromium coverage. Keyboard request persistence, non-Scrum replay and shared writer coordination remain unfinished.

Thanks to xet7 !
2026-09-28 23:43:32 +03:00
Lauri Ojansivu 16b17c4943 Persist Scrum History completion before checkpoint cleanup
Bind immutable private receipts to the original operation, actor, source hash and checkpoint plan. Reconcile uncertain cleanup from saved completion without rewriting History or deleting successor work. Reject damaged evidence and changed plans.

Cover false and lost acknowledgements, restart replay, finalization corruption and browser privacy with Node, MongoDB, full-app and Chromium tests. Public request identities and cross-document coordination remain unfinished.

Thanks to xet7 !
2026-09-28 23:33:45 +03:00
Lauri Ojansivu 3b7eaedeeb Verify Scrum History checkpoint cleanup from stored state
Read the board checkpoint after conditional deletion. Reject false acknowledgements, unreadable results and successor checkpoints; reconcile a lost reply only after confirmed absence.

Cover cleanup failures and retries in unit and full-app tests, preserving the undo timestamp and one restoration event. Document remaining cross-document and restart coordination limits.

Thanks to xet7.
2026-09-28 22:03:42 +03:00
Lauri Ojansivu eb91a68a5a Bind Scrum recovery ownership to the exact persisted checkpoint plan 2026-09-28 17:02:33 +03:00
Lauri Ojansivu 2bbc13456f Refuse superseded Scrum redo checkpoints before replaying writes 2026-09-28 16:59:05 +03:00
Lauri Ojansivu 0d582c9c0a Verify Scrum undo finalization before removing recovery checkpoints
Check source integrity, conditional write results and persisted undo state. Preserve undo timestamps across retries and delete only the matching operation checkpoint. Test failed writes, damaged final state, replacement checkpoints and recovery in Node and Chromium.

Thanks to xet7 !
2026-09-28 01:07:15 +03:00