You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/03/05 16:22:14 UTC

[GitHub] [couchdb-fauxton] brianewilkins opened a new pull request #1310: In Replication panel warn that not all replications may be displayed.

brianewilkins opened a new pull request #1310:
URL: https://github.com/apache/couchdb-fauxton/pull/1310


   ## 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
   <code>
         const url = Helpers.getServerUrl('/_replicator/_all_docs?include_docs=true&limit=100');
   </code>
   And then at https://github.com/apache/couchdb-fauxton/blob/main/app/addons/replication/api.js#L321
   we filter out all the design documents:
   <code>
            return parseReplicationDocs(res.rows.filter(row => row.id.indexOf("_design/") === -1));       
   </code>
   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
   https://github.com/apache/couchdb-fauxton/pull/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.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-fauxton] brianewilkins commented on pull request #1310: In Replication panel warn that not all replications may be displayed.

Posted by GitBox <gi...@apache.org>.
brianewilkins commented on pull request #1310:
URL: https://github.com/apache/couchdb-fauxton/pull/1310#issuecomment-792901462


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


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-fauxton] brianewilkins closed pull request #1310: In Replication panel warn that not all replications may be displayed.

Posted by GitBox <gi...@apache.org>.
brianewilkins closed pull request #1310:
URL: https://github.com/apache/couchdb-fauxton/pull/1310


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org