Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 86676 invoked from network); 6 Dec 2010 08:36:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 08:36:47 -0000 Received: (qmail 61725 invoked by uid 500); 6 Dec 2010 08:36:47 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 61542 invoked by uid 500); 6 Dec 2010 08:36:47 -0000 Mailing-List: contact dev-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 dev@couchdb.apache.org Received: (qmail 61534 invoked by uid 99); 6 Dec 2010 08:36:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 08:36:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 08:36:39 +0000 Received: by iwn37 with SMTP id 37so14361175iwn.11 for ; Mon, 06 Dec 2010 00:36:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=eMFB1yhdGKjaTazxA7MR9tPAb92yBGsjzvU9o48YSEI=; b=CRI1qormjgHuKb/eUOc3dGD7FS55Wopf7eq1LagieftwGf7M8LSenMlpaQbFjuF1jv 0pIRferP1zlNtkOVWJw4N6HTkzVuHaaaASQJkArJtDnfyRszeQrCV9ujpU8HWYAyycKK 72WzGLJlWQ27qOrgf+0DmNYsOStrIyUtf4bTs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Cm+B5WrHF9WsdO30ijco9o3bhFtk/q8FZxq94GAHMpg/YPakBKldV291aRQXkvnE1r ns8PeKzVJrPJ7xEkQA/+2WjUWmy24gnTLgmaLENKOkAIzLs2uzNXz0WHiHMF1wyQXxq9 eOmKAZGRhAfpxhvhd+2M71X07ZUFZGbXRgbWw= MIME-Version: 1.0 Received: by 10.231.10.137 with SMTP id p9mr5569566ibp.186.1291624579014; Mon, 06 Dec 2010 00:36:19 -0800 (PST) Received: by 10.231.24.201 with HTTP; Mon, 6 Dec 2010 00:36:18 -0800 (PST) In-Reply-To: References: Date: Mon, 6 Dec 2010 09:36:18 +0100 Message-ID: Subject: Re: use view functions to emit changes From: Benoit Chesneau To: "dev@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 bump. On Tuesday, November 30, 2010, Benoit Chesneau wrote: > On Tue, Nov 30, 2010 at 4:44 PM, Filipe David Manana > wrote: >>> >>> Here is an updated patch. It now use a filter sandbox instead of >>> patching the function and it fixes whitespaces. >> >> Why a separate function to init the filter_sandbox? It can be done at >> the end of the existing init_sandbox() function (perhaps renaming it >> to init_sandboxes). >> >> I would rename Filter.filter_view to Filter.view_filter or to >> Filter.map_filter (doing the same in >> src/couchdb/couch_query_servers.erl for naming consistency). >> >> 4) is still there (the debugging ?LOG_INFO line). >> >> Also, this patch should only contain the changes necessary to >> implement the new feature. While all the whitespace and indentation >> fixes (to comply with the wiki rules) are a welcome plus, they should >> come in a separate patch imo. >> > Well I used filter_view for consistency, since we use filter_docs > already, I don't think it need to be changed at this point. I've > removed the log stuff. > > Are we OK for such feature ? If yes, I will commit it. > > - benoit >