super-productivity/packages/super-sync-server/scripts
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
..
analyze-storage.ts fix(sync): preserve own vector clock counter across full-state op resets 2026-04-01 15:41:13 +02:00
backup.sh feat(sync): add backup strategy with accounts-only dump and disaster recovery docs 2026-03-18 20:15:45 +01:00
build-and-push.sh build(supersync): add GitHub Actions workflow and update Docker config 2026-01-23 21:42:44 +01:00
clear-data.ts refactor(sync): remove tombstone system 2025-12-28 12:08:28 +01:00
delete-user.ts fix(superSync): Update admin scripts and README for Postgres compatibility 2025-12-12 20:48:40 +01:00
deploy.sh fix(sync-server): remove jq dependency from deploy script 2026-03-27 17:55:49 +01:00
docker-monitor.sh fix(sync-server): use compiled JS for monitoring scripts in Docker 2026-03-27 17:33:38 +01:00
health-alert.sh fix(sync-server): security hardening and GDPR log compliance 2026-03-18 20:48:51 +01:00
monitor.ts fix(monitoring): mask PII, add types, fix sort and validation issues 2026-03-23 10:52:57 +01:00
MONITORING-README.md Add active users monitoring command with engagement metrics (#6921) 2026-03-22 23:15:14 +01:00
run-all-monitoring.ts fix(sync-server): use compiled JS for monitoring scripts in Docker 2026-03-27 17:33:38 +01:00