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. #1311

Merged
merged 1 commit into from
Dec 2, 2021
Merged

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

merged 1 commit into from
Dec 2, 2021

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.

Testing recommendations

Go to the Replicator DB Activity tab of the Replication panel
and observe that the string:
"Up to about 100 replications are displayed."
appears after the string:
"Replications must have a replication document to display in the following table."

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.

#1301 is my previous attempt to submit this change,
but somehow the build failed. So I will delete that Pull Request
and use the present Pull Request instead.

In the "Replication DB Activity" tab of the Replication panel
add the message \"Up to about 100 replications are displayed.\"
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.

2 participants