garrensmith commented on a change in pull request #1075: Replication paginate
URL: https://github.com/apache/couchdb-fauxton/pull/1075#discussion_r195351040
 
 

 ##########
 File path: app/addons/replication/api.js
 ##########
 @@ -295,10 +297,16 @@ export const combineDocsAndScheduler = (docs, 
schedulerDocs) => {
   });
 };
 
-export const fetchReplicationDocs = () => {
+export const fetchReplicationDocs = ({docsPerPage, page}) => {
+  const params = {
+    limit: docsPerPage + 1,
+    skip: (page - 1) * docsPerPage,
+    include_docs: true
+  };
+
   return supportNewApi()
     .then(newApi => {
-      const docsPromise = 
get('/_replicator/_all_docs?include_docs=true&limit=100')
+      const docsPromise = 
get(`/_replicator/_all_docs?startkey=%22_designZ%22&${app.utils.queryParams(params)}`)
 
 Review comment:
   This fetches all the docs in the replicator db except the design doc.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to