Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checkpoint events during replication #8324

Merged
merged 3 commits into from Aug 3, 2021

Conversation

AlbaHerrerias
Copy link
Contributor

@AlbaHerrerias AlbaHerrerias commented Jul 9, 2021

The motivation behind this PR is to emit checkpoint events during the replication process. This PR is related to @chrisekelley 's fork. Our goal is to extract and provide test for these functionalities.

In this PR:

  • Add emit event checkpoint inside the package pouchdb-replication.
    We emit an object, which can contain the following property names: checkpoint, revs_diff, start_next_batch and pending_batch. Would these follow PouchDB variable name conventions? We will be happy to refactor them if someone comes up with better naming for these.
  • Add test inside test.replication_events.js, but we are unsure if this is the correct suite to test it.

Any help would be highly appreciated. Thank you.

@AlbaHerrerias
Copy link
Contributor Author

We have updated eslint ecmaVersion to 8 in order to use async/await in tests. This commit is from this PR.

AlbaHerrerias and others added 3 commits August 3, 2021 15:31
Co-Authored-By: James Coglan <9265+jcoglan@users.noreply.github.com>
Co-Authored-By: Chris E. Kelley <861535+chrisekelley@users.noreply.github.com>
We need to upgrade eslint version in order to use modern JS syntax in tests (like arrow functions or async keyword)

Co-Authored-By: James Coglan <9265+jcoglan@users.noreply.github.com>
Co-Authored-By: James Coglan <9265+jcoglan@users.noreply.github.com>
@janl janl merged commit 9f5da87 into pouchdb:master Aug 3, 2021
@janl janl deleted the replication-checkpoint-event branch August 3, 2021 15:51
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.

None yet

2 participants