couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <>
Subject Re: use view functions to emit changes
Date Tue, 14 Dec 2010 13:28:19 GMT
On Tue, Dec 14, 2010 at 2:03 PM, Filipe David Manana
<> wrote:
> On Tue, Dec 14, 2010 at 12:42 PM, Benoit Chesneau <> wrote:
>> Back on this, have been distracted by flu.
>>> 4) Perhaps here:
>>> the name of the command sent to the view server should be something
>>> like 'view_filter' instead of 'views', which to me is a bit misleading
>> Well it would require more changes in loop.js. It actually looks for
>> mountpoints in the design doc to validate it. Her views is the mmember
>> of the ddoc where to find the map function. I think we should keep  it
> I don't understand. Why is it complex?
> You just need to change two lines:
> and
> "views" -> "filter_view"
> <<"views">> -> <<"filter_view">>
> I'm talking about just the name of the command sent to the view server.

For all (it was discussed on irc), this isn't as easy. Reason is :

Actually the point givent by the query server should be a member of
ddoc. So it will require either an alias :

if (funPath === "view_filter") { funPath = "views"; }

(suggested by fdmanana)

or more changes in loop.js .

I don't like to add this extra bit just for a naming purpose. This
isn't really required here even for debug since we know we are in ddoc
part of loop.js .
Ticket about this feature:

14:10 < fdmanana> nobody else complained, so i leave the decision to you

If others are OK I will commit it. Let me know.

- benoît

View raw message