super-productivity/docs
Johannes Millan 064c2452ca fix(sync): handle piggyback limit in high-volume sync
When syncing 100+ operations, the server's piggyback limit (100 ops)
was causing Client B to miss operations. The server returned 100 piggybacked
ops but latestSeq was set to the actual server sequence (e.g., 199).
Client B then updated lastServerSeq to 199, so subsequent download got 0 ops.

Changes:
- Server: Add hasMorePiggyback flag to UploadOpsResponse when piggyback limit
  is reached and more ops exist
- Client: When hasMorePiggyback is true, store lastServerSeq as the max
  piggybacked op's serverSeq instead of latestSeq, ensuring subsequent
  download fetches remaining ops
- Effects: Change switchMap to mergeMap in autoAddTodayTagOnMarkAsDone to
  ensure ALL mark-as-done actions trigger planTasksForToday
- Flush service: Implement two-phase wait strategy (poll queue + acquire lock)
  to ensure all pending writes complete before upload
- Add diagnostic logging for operation counts at key stages

Test: High volume sync with 50 tasks + 49 mark-as-done (197 ops total)
now correctly syncs all done states via piggyback (100) + download (97).
2025-12-22 20:31:35 +01:00
..
ai fix(sync): handle piggyback limit in high-volume sync 2025-12-22 20:31:35 +01:00
promotion build: better organize stuff 2025-06-27 09:03:16 +02:00
screens build: better organize stuff 2025-06-27 09:03:16 +02:00
sync docs(sync): improve and consolidate operation log documentation 2025-12-16 10:45:20 +01:00
add-new-integration.md docs: add comprehensive guide for creating new issue tracker integrations 2025-03-07 16:11:10 +01:00
build-and-publish-notes.md docs: add note about screenshot data 2020-10-24 19:20:20 +02:00
ENV_SETUP.md build: final approach 2025-07-14 20:52:51 +02:00
github-access-token-instructions.md docs: make token docs work better 2025-01-11 14:45:24 +01:00
gitlab-access-token-instructions.md Merge branch 'master' into split-gitlab-docs 2025-01-11 15:02:35 +01:00
how-to-rate.md docs: add info about 5 star ratings 2025-10-23 10:29:55 +02:00
howto-refresh-snap-credentials.md docs: add info to refresh snap credentials 2024-02-16 17:01:49 +01:00
legacy-webview-analysis.md 16.2.1 2025-11-01 13:22:58 +01:00
mac-app-store-code-signing-guide.md docs: clarify certificate selection with 'For use in Xcode 11 or later' description 2025-11-10 16:06:58 +01:00
performance-project-tag-report.md docs: add performance report 2025-11-13 18:23:50 +01:00
plugin-development.md docs(plugin-dev): improve whitespaces 2025-11-17 21:08:02 +02:00
update-android-app.md docs: update instructions on how to release android 2025-03-09 13:16:23 +01:00
update-mac-certificates.md build: make mas build work and fix guide 2025-11-09 16:35:09 +01:00