Skip to content

Push v2 core implementation - #4700

Merged
tomasMizera merged 8 commits into
feature/sync-v2from
feature/push-v2
Sep 19, 2026
Merged

tomasMizera merged 8 commits into
feature/sync-v2from
feature/push-v2

Conversation

@tomasMizera

@tomasMizera tomasMizera commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

This PR adds support for the new push mechanism - parallel project sync.

Implementation comments:

  • Transferred size is now updated with every chunk upload instead of every file
  • TransactionStatus now keeps a dedicated pushChanges member with all added, updated and removed files metadata. This is important as we inform the server about project changes only at the end of the sync (previously known as ~pushFinish)
  • Chunks in v2 are pregenerated with dummy IDs and swapped with server IDs after upload
  • Chunks upload is still sequential

What needs to be fixed in follow-up PRs:

  • Server feature flags (v2 push enabled and v2 pull enabled) are ignored now
  • Project ID is forced to a specific one now - need support for project IDs
  • Push cancel logic
  • Error handling of check_only
  • Further, robust, autotests suite

Fixes #4008

@tomasMizera tomasMizera changed the title Draft push v2 code, chunks, api endpoints Push v2 core implementation Sep 16, 2026
@tomasMizera
tomasMizera marked this pull request as ready for review September 16, 2026 15:19
@github-actions

Copy link
Copy Markdown

📦 Build Artifacts Ready

OS Status Build Info Workflow run
macOS Build Build failed or not found. #7290
linux Build Build failed or not found. #7316
win64 Build 📬 Mergin Maps 64921 win64 Expires: 15/12/2026 #6492
Android Build Build failed or not found. #8600
iOS Build Build failed or not found. #9542

@Withalion Withalion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@tomasMizera
tomasMizera merged commit 283e47e into feature/sync-v2 Sep 19, 2026
5 of 10 checks passed
@tomasMizera
tomasMizera deleted the feature/push-v2 branch September 19, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants