Github user garrensmith commented on a diff in the pull request:

    https://github.com/apache/couchdb/pull/194#discussion_r10966389
  
    --- Diff: src/fauxton/app/addons/documents/resources.js ---
    @@ -40,70 +41,7 @@ function(app, FauxtonAPI) {
         };
       })();
     
    -  Documents.paginate = {
    -    history: [],
    -    calculate: function (doc, defaultParams, currentParams, _isAllDocs) {
    -      var docId = '',
    -          lastId = '',
    -          isView = !!!_isAllDocs,
    -          key;
    -
    -      if (currentParams.keys) {
    -        throw "Cannot paginate when keys is specfied";
    -      }
    -
    -      if (_.isUndefined(doc)) {
    -        throw "Require docs to paginate";
    -      }
    -
    -      // defaultParams should always override the user-specified parameters
    -      _.extend(currentParams, defaultParams);
    -
    -      lastId = doc.id || doc._id;
    -
    -      // If we are paginating on a view, we need to set a ``key`` and a 
``docId``
    -      // and expect that they are different values.
    -      if (isView) {
    -        key = doc.key;
    -        docId = lastId;
    -      } else {
    -        docId = key = lastId;
    --- End diff --
    
    That is the old way that we paginated. We now using the 
`cloudant.paginatingCollection` to do pagination. This is no longer needed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to