mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 17:05:48 +00:00
* cleanup: remove unused latestSnapshotSeq from HTTP response and client types latestSnapshotSeq was computed on every download but never read by any client code. sibling snapshotVectorClock IS consumed — only this field is dead. The server still computes it internally for the snapshot optimization logic, but it no longer serializes it in the response. Removed from: - DownloadOpsResponse type and response object (sync.routes.ts) - Zod schema (supersync-http-contract.ts) + associated test - OpDownloadResponseBase interface (sync-providers) - Client validator test + stale comment references - Server integration test assertions * cleanup: remove deprecated CONFLICT_STALE error code Server never emits CONFLICT_STALE (fully migrated to CONFLICT_SUPERSEDED). * cleanup: remove unused SyncConfig fields (maxOpsPerUpload, downloadLimit, downloadRateLimit) These three config fields were declared and defaulted but never read by any code. Routes hardcode their own limits: - maxOpsPerUpload: gate is MAX_OPS_PER_BATCH constant (sync.routes.payload.ts) - downloadLimit: hardcoded Math.min(limit, 1000) in sync.routes.ts - downloadRateLimit: hardcoded max:200 in route rateLimit config * cleanup: remove dead/drifted duplicate types from sync.types.ts Removed 6 types with zero references repo-wide: - SnapshotResponse: orphaned after previous PR removed its importers - UploadSnapshotRequest: zero uses, missing 7 fields vs actual Zod schema - RestorePointType: zero uses, included dead 'DAILY_BOUNDARY' value - RestorePoint: zero uses (live version in snapshot.service.ts) - RestorePointsResponse: zero uses - RestoreSnapshotResponse: zero uses |
||
|---|---|---|
| .. | ||
| integration | ||
| account-page-contrast.spec.ts | ||
| api.routes.spec.ts | ||
| auth-cache.spec.ts | ||
| auth-flows.spec.ts | ||
| cleanup.spec.ts | ||
| config.spec.ts | ||
| conflict-detection.spec.ts | ||
| conflict.spec.ts | ||
| decompress-body.spec.ts | ||
| device.service.spec.ts | ||
| duplicate-operation-precheck.spec.ts | ||
| email.spec.ts | ||
| entity-ids-conflict.pglite.spec.ts | ||
| gap-detection.spec.ts | ||
| issue-8334-detect-conflict.spec.ts | ||
| magic-link-registration.spec.ts | ||
| middleware.spec.ts | ||
| migrate-deploy-script.spec.ts | ||
| migration-sql.spec.ts | ||
| op-replay.spec.ts | ||
| operation-download.service.spec.ts | ||
| passkey.spec.ts | ||
| password-reset-api.spec.ts | ||
| password-reset.spec.ts | ||
| rate-limit.service.spec.ts | ||
| registration-api.spec.ts | ||
| replace-token-expiry.spec.ts | ||
| request-dedup-failure-caching.routes.spec.ts | ||
| request-deduplication.service.spec.ts | ||
| retention-config.spec.ts | ||
| security-fixes.spec.ts | ||
| server-security.spec.ts | ||
| server.error-log-level.spec.ts | ||
| setup.ts | ||
| snapshot-skip-optimization.spec.ts | ||
| snapshot.service.spec.ts | ||
| storage-quota-cleanup.spec.ts | ||
| storage-quota.service.spec.ts | ||
| sync-compressed-body.routes.spec.ts | ||
| sync-fixes.spec.ts | ||
| sync-operations.spec.ts | ||
| sync-types.spec.ts | ||
| sync-upload-rate-limit.routes.spec.ts | ||
| sync.const.spec.ts | ||
| sync.routes.spec.ts | ||
| sync.service.spec.ts | ||
| sync.service.test-state.ts | ||
| time-tracking-operations.spec.ts | ||
| validation.service.spec.ts | ||
| websocket-connection.service.spec.ts | ||
| websocket.routes.spec.ts | ||