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

In Replication panel warn that not all replications may be displayed. #1310

Closed
wants to merge 1 commit into from
Closed

Conversation

brianewilkins
Copy link
Contributor

Overview

In the "Replicator DB Activity" tab of the Replication panel
add the message "Up to about 100 replications are displayed."

When there are many _replicator documents, users are puzzled
when some replications do not show up in the
Replicator DB Activity panel of the Replication panel.

In my test using Cloudant I found that the number of replications
displayed in the Replicator DB Activity tab of the Replication panel was 99.
That must be because we get 100 _replicator documents at:
https://github.com/apache/couchdb-fauxton/blob/main/app/addons/replication/api.js#L314

const url = Helpers.getServerUrl('/_replicator/_all_docs?include_docs=true&limit=100');

And then at https://github.com/apache/couchdb-fauxton/blob/main/app/addons/replication/api.js#L321
we filter out all the design documents:

return parseReplicationDocs(res.rows.filter(row => row.id.indexOf("_design/") === -1));

And in Cloudant the _replicator database is created with a
design document _design/_replicator.
So of the 100 _replicator documents that were retrieved,
one was filtered out, leaving 99 replications to be displayed
in the "Replicator DB Activity" tab of the Replication panel.

When I tried the same thing with Apache CouchDB,
the _replicator document did not contain any design documents,
so 100 replications were displayed.

Related Pull Requests

#1288 "Support pagination in ReplicatorDB activity panel "
would prevent the problem addressed by the present Pull Request.
But 1288 is still Open and it is not clear when or if it will ever be complete.

In the "Replication DB Activity" tab of the Replication panel
add the message \"Up to about 100 replications are displayed.\"
@brianewilkins
Copy link
Contributor Author

I have created Pull Request #1311 to replace the present Pull Request.
I am closing the present Pull Request.

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.

1 participant