In Replication panel warn that not all replications may be displayed. #1311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
In the
Replicator DB Activity
tab of the Replication paneladd 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
And then at https://github.com/apache/couchdb-fauxton/blob/main/app/addons/replication/api.js#L321
we filter out all the design documents:
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 theReplication
paneland 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.