Repository navigation
Conversation
OneShotChangesSince started at the since sequence, so each round of a continuous push proposed the last change it sent again, and Sync Gateway answered 304. Start at since+1, as Couchbase Lite does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🟢 Looks good to mergeNo issues found in 🔒 Security review: no findings. What changedUpdated BlipTesterCollectionClient's OneShotChangesSince iteration to start at since+1, and clarified the changesSince comment to match the "newer than" behavior.
|
There was a problem hiding this comment.
🟡 Changes recommended
The tests do not verify that OneShotChangesSince(ctx, 1) excludes sequence 1 while yielding sequence 2. The iterator test starts at 0, and the nonzero-since test has no newer changes, so neither protects against regression of the inclusive-boundary bug this change fixes.
1 open issue
What changed in this PR
Fixes duplicate change proposals in Sync Gateway’s BLIP test client by excluding the last-sent sequence.
Changes:
- Starts iteration at
since + 1. - Clarifies the
changesSincecomment to describe the exclusive boundary.
| File | Description |
|---|---|
rest/utilities_testing_blip_client.go |
Excludes the since sequence and clarifies the iterator’s documented behavior. |
Review effort: Balanced

CBG-6225
OneShotChangesSincestarted at thesincesequence, so each round of a continuous push proposed the last change it sent again, and Sync Gateway answered 304. Start atsince+1, as Couchbase Lite does.Pre-review checklist
base.UD(docID),base.MD(dbName))docs/apiIntegration Tests
🤖 Generated with Claude Code