apache / apache/pouchdb

Replication ignores since parameter if checkpoints are disabled

Open
#9,032 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.6k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

### Issue
When disabling replication checkpoints the `since` parameter is ignored. This is not indicated on the documentation and prevents me from managing my own replication checkpoints unless I also leave in redundant default checkpoints

### Info
- Environment: browser
- Platform: Chrome
- Adapter: idb
- Server: CouchDB

### Reproduce
```TypeScript
const localDb = new PouchDB('testdb');
const remoteDb = new PouchDB('https://sync.server.com:5984/testdb')
remoteDb.replicate.to(localDb, {
live: true,
retry: true,
since: '390525-g1AAAACheJzLYWBgYMpgTmEQTM4vTc5ISXIwNDLXMwBCwxyQVCJDUv3___-zMpiTGJg-fM8FirGbJVkYmFomY9ODx6Q8FiDJ0ACk_sMMZGZpAxtonmiZlGiO1cAsAI_hKv0',
checkpoint: false,
})
```
Check the network log and you will see it requests changes from sequence `0` rather than `390525`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.