Skip to content

Fix condition for creating diff checkpoints#607

Merged
MarcelGeo merged 2 commits intodevelopfrom
fix_diff_checkpoints
Apr 9, 2026
Merged

Fix condition for creating diff checkpoints#607
MarcelGeo merged 2 commits intodevelopfrom
fix_diff_checkpoints

Conversation

@varmar05
Copy link
Copy Markdown
Collaborator

@varmar05 varmar05 commented Apr 8, 2026

Enforce rule that checkpoint can not contain basefile in its range.

When creating diff chain / history, always lookup with version higher than basefile. This prevents confusion when it is worth creating a diff checkpoint and ensures we only create merged diffs which can actually be applied.

As a consequence, gpkg will never have checkpoints starting with version 1.

Enfore rule that checkpoint can not contain basefile in its range. When creating diff chain / history, always lookup with version higher than basefile.
This prevents confusion when it is worth creating a diff checkpoint and ensures we only create merged diffs which can actually be applied.

As a consequence, gpkg will never have checkpoints starting with version 1.
@varmar05 varmar05 requested a review from MarcelGeo April 8, 2026 14:19
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 8, 2026

Coverage Report for CI Build 24184330411

Coverage increased (+0.007%) to 93.248%

Details

  • Coverage increased (+0.007%) from the base build.
  • Patch coverage: 22 of 22 lines across 4 files are fully covered (100%).
  • 1 coverage regression across 1 file.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

1 previously-covered line in 1 file lost coverage.

File Lines Losing Coverage Coverage
server/mergin/sync/models.py 1 93.94%

Coverage Stats

Coverage Status
Relevant Lines: 9805
Covered Lines: 9143
Line Coverage: 93.25%
Coverage Strength: 0.93 hits per line

💛 - Coveralls

@MarcelGeo MarcelGeo merged commit 2166263 into develop Apr 9, 2026
4 checks passed
@MarcelGeo MarcelGeo deleted the fix_diff_checkpoints branch April 9, 2026 10:33
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.

3 participants