apache / apache/couchdb-nano

`changesReader.get` doesn't call the 'end' callback

Open
#315 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
689
Forks
167
Avg merge
1h
Merged PRs (30d)
1

Description

## Expected Behavior

On call of `changesReader.get` it's expected that the request should pull changes till the last change then `on('end'` should be called

## Current Behavior

Currently on call of `changesReader.get({ includeDocs: true, since: changesSince, batchSize: 500 })` the changes are pulled but `on('end', () => {...})` never gets called. So I can't tell when all the changes have been pulled.

## Your Environment

* Version used: 10.1.0
* Browser Name and version: N/A
* Running in node app: 16.17.0
* Operating System and version (desktop or mobile):
* Link to your project:

Contributor guide

Open the contributing guide

Research direction

Start at the changesReader.get entry point described in the report and trace how includeDocs, since, and batchSize are handled. Use the reported Node.js call to verify that changes are delivered through the final item and that the on('end') callback fires when retrieval is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.