mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-24 08:27:18 +00:00
Fix race condition where sync could start before local operation writes completed to IndexedDB, causing conflict detection to miss pending ops. - Add OperationWriteFlushService that uses sp_op_log lock to ensure all pending writes complete before reading from IndexedDB - Call flushPendingWrites() before conflict detection in sync service - Add retry with exponential backoff to createTestUser for rate limiting - Add unit tests for flush service and sync ordering The flush mechanism works by acquiring the same lock used by writeOperation(). Since effects use concatMap and Web Locks API guarantees FIFO ordering, acquiring the lock means all prior writes have completed. |
||
|---|---|---|
| .. | ||
| check-webdav.ts | ||
| supersync-helpers.ts | ||
| waits.ts | ||