super-productivity/packages/super-sync-server/prisma/migrations
Johannes Millan d32f7037a3 fix(sync): preserve own vector clock counter across full-state op resets
When a full-state op (SYNC_IMPORT/BACKUP_IMPORT) arrived from another
client, mergeRemoteOpClocks reset the local clock to a "minimal" form
but only preserved the current client's counter from the incoming op's
clock. If the current client had issued ops (e.g. GLOBAL_CONFIG) not
reflected in the incoming full-state op's clock, its counter was dropped,
causing subsequent ops to reuse the same counter value. Downstream clients
then saw these ops as EQUAL (duplicate) and skipped them silently.

Fix: take max(mergedClock[clientId], currentClock[clientId]) when
rebuilding the clock after a full-state op reset.

Also add __SP_E2E_BLOCK_WS_DOWNLOAD flag to WsTriggeredDownloadService
to allow E2E tests to block automatic WS-triggered downloads during
concurrent conflict scenarios.

Fix archive conflict test by blocking WS downloads on Client A during
the concurrent edit phase so it doesn't auto-receive B's rename via
WebSocket before archiving (restoring the intended conflict scenario).

Fix LWW singleton test to assert convergence rather than specific winner.
Fix renameTask helper to avoid Playwright/Angular re-render races.
Fix shepherd.js import paths that broke the Angular dev server build.
2026-04-01 15:41:13 +02:00
..
20251212000000_add_is_payload_encrypted fix(sync): enable E2E encryption for SuperSync operations 2025-12-12 20:48:40 +01:00
20251218000000_add_storage_quota feat(sync): add per-user storage quota enforcement (100MB) 2025-12-18 17:17:52 +01:00
20251228000000_remove_parent_op_id refactor(sync): remove unused parentOpId field 2025-12-28 11:48:38 +01:00
20251228000001_remove_tombstones refactor(sync): remove tombstone system 2025-12-28 12:08:28 +01:00
20251231000000_add_password_reset_token fix(security): address critical and high severity vulnerabilities 2025-12-31 12:15:56 +01:00
20260102000000_add_passkey_support feat(sync-server): replace password auth with passkey + magic link 2026-01-02 16:52:48 +01:00
20260103000000_add_optype_index chore: code review improvements for operation-logs branch 2026-01-03 13:17:42 +01:00
20260329000000_add_sync_import_reason fix(sync): transmit syncImportReason through sync pipeline 2026-03-29 20:06:41 +02:00
migrate-passkey-credentials.ts fix(sync): preserve own vector clock counter across full-state op resets 2026-04-01 15:41:13 +02:00