couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michel...@apache.org
Subject fauxton commit: updated refs/heads/master to 5fcb065
Date Wed, 28 Oct 2015 15:30:54 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a45d28014 -> 5fcb06539


Add include_docs=true to _replication/_all_docs


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/5fcb0653
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/5fcb0653
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/5fcb0653

Branch: refs/heads/master
Commit: 5fcb06539609be6e4c31e4c472db9eae5fbe6e97
Parents: a45d280
Author: Michelle Phung <michellep@apache.org>
Authored: Tue Oct 27 11:01:55 2015 -0400
Committer: Michelle Phung <michellep@apache.org>
Committed: Wed Oct 28 10:42:40 2015 -0400

----------------------------------------------------------------------
 app/addons/documents/routes-documents.js | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/5fcb0653/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index 0b4042d..f240501 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -119,6 +119,14 @@ function (app, FauxtonAPI, BaseRoute, Documents, Changes, ChangesActions,
Databa
 
         this.leftheader.updateCrumbs(this.getCrumbs(this.database));
 
+        // includes_docs = true if you are visiting the _replicator/_users databases
+        if ( ['_replicator', '_users'].indexOf(databaseName) > -1) {
+          docParams.include_docs = true;
+          urlParams = params.docParams;
+          var updatedURL = FauxtonAPI.urls('allDocs', 'app', databaseName, '?' + $.param(urlParams));
+          FauxtonAPI.navigate(updatedURL, {trigger: false, replace: true});
+        }
+
         this.database.buildAllDocs(docParams);
         collection = this.database.allDocs;
 


Mime
View raw message