simpl-liste/tests
le king fu 859376b54a fix(sync): push marks only applied or duplicate operations and replays refusals within bounds
pushChanges marked the whole outbox as synced once every POST answered
200, so an operation the server refused (skipped with an error) was lost.
It now reads the results: applied and skipped-without-error entries are
marked, a refusal is replayed at every push for 30 days, among the 100
most recent, until a newer entry of the same entity goes through. A
failed batch no longer hides the results of the batches before it.

The batch loop moves to syncRules.ts (sendInBatches), tested under node:
pushChanges sends 8 batches at most and stops at a 429, initialMerge
sends every batch and waits for the Retry-After of a 429 (60 s at most,
3 resends), so a first sync no longer fails at its eleventh batch.

Server side, comments only, plus a test of the results contract.

Refs #151

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:36:03 -04:00
..
feedback.test.mjs feat(feedback): integrate Feedback Hub widget in Settings (#68) 2026-07-27 19:43:12 -04:00
smoke.test.cjs fix(sync): push marks only applied or duplicate operations and replays refusals within bounds 2026-10-24 14:36:03 -04:00
syncRules.test.mjs fix(sync): push marks only applied or duplicate operations and replays refusals within bounds 2026-10-24 14:36:03 -04:00