Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E23A211D0E for ; Mon, 19 May 2014 16:30:59 +0000 (UTC) Received: (qmail 80687 invoked by uid 500); 19 May 2014 16:22:07 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 80222 invoked by uid 500); 19 May 2014 16:22:07 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 75905 invoked by uid 99); 19 May 2014 16:17:19 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 16:17:19 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 544FB9878C5; Mon, 19 May 2014 16:17:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garren@apache.org To: commits@couchdb.apache.org Date: Mon, 19 May 2014 16:17:29 -0000 Message-Id: <77799de42309424fac7f4e3ed647f66a@git.apache.org> In-Reply-To: <49fb1b4064d446ba9720e079b49bbd01@git.apache.org> References: <49fb1b4064d446ba9720e079b49bbd01@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [11/47] couchdb commit: updated refs/heads/Update-Sidebar-Ui to c173e52 Fix bug in docs list Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/8b5e4ba8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/8b5e4ba8 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/8b5e4ba8 Branch: refs/heads/Update-Sidebar-Ui Commit: 8b5e4ba87fda03eb3129890a80e23def814ed4af Parents: 7599552 Author: Garren Smith Authored: Fri Apr 25 10:57:26 2014 +0200 Committer: Garren Smith Committed: Fri Apr 25 10:57:26 2014 +0200 ---------------------------------------------------------------------- src/fauxton/app/addons/documents/resources.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/8b5e4ba8/src/fauxton/app/addons/documents/resources.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/resources.js b/src/fauxton/app/addons/documents/resources.js index eb6615a..99e79a2 100644 --- a/src/fauxton/app/addons/documents/resources.js +++ b/src/fauxton/app/addons/documents/resources.js @@ -372,10 +372,20 @@ function(app, FauxtonAPI, PagingCollection) { // remove any query errors that may return without doc info // important for when querying keys on all docs - resp.rows = _.filter(rows, function(row){ + var cleanRows = _.filter(rows, function(row){ return row.value; }); + resp.rows = _.map(cleanRows, function(row){ + return { + _id: row.id, + _rev: row.value.rev, + value: row.value, + key: row.key, + doc: row.doc || undefined + }; + }); + return PagingCollection.prototype.parse.call(this, resp); } });