You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benoit Chesneau (JIRA)" <ji...@apache.org> on 2010/12/14 14:27:01 UTC

[jira] Created: (COUCHDB-987) use view functions to emit changes

use view functions to emit changes
----------------------------------

                 Key: COUCHDB-987
                 URL: https://issues.apache.org/jira/browse/COUCHDB-987
             Project: CouchDB
          Issue Type: New Feature
    Affects Versions: 1.2
            Reporter: Benoit Chesneau
            Assignee: Benoit Chesneau
             Fix For: 1.2
         Attachments: view_changes.patch

Add the ability to use map view function to filter changes  instead of duplicating the
effort in writing a filter function that does the same, which is
apparently done a lot. 

Each time a value could be emitted, a change  is returned. The url is :

http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname

On other advantage is that I can also use this in an external indexer.

Branch is available on my github repo : 

https://github.com/benoitc/couchdb/tree/view_changes

diff has been attached.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Created: (COUCHDB-987) use view functions to emit changes

Posted by Klaus Trainer <kl...@web.de>.
Though I haven't tested your view_changes branch, I'd just like to give
my +1 on this anyway. It's definitely a good feature, and the interface
(i.e., url query parameter syntax) looks straightforward.

Thanks Benoit!


On Tue, 2010-12-14 at 08:27 -0500, Benoit Chesneau (JIRA) wrote:
> use view functions to emit changes
> ----------------------------------
> 
>                  Key: COUCHDB-987
>                  URL: https://issues.apache.org/jira/browse/COUCHDB-987
>              Project: CouchDB
>           Issue Type: New Feature
>     Affects Versions: 1.2
>             Reporter: Benoit Chesneau
>             Assignee: Benoit Chesneau
>              Fix For: 1.2
>          Attachments: view_changes.patch
> 
> Add the ability to use map view function to filter changes  instead of duplicating the
> effort in writing a filter function that does the same, which is
> apparently done a lot. 
> 
> Each time a value could be emitted, a change  is returned. The url is :
> 
> http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname
> 
> On other advantage is that I can also use this in an external indexer.
> 
> Branch is available on my github repo : 
> 
> https://github.com/benoitc/couchdb/tree/view_changes
> 
> diff has been attached.
> 
> 



[jira] Commented: (COUCHDB-987) use view functions to emit changes

Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971272#action_12971272 ] 

Filipe Manana commented on COUCHDB-987:
---------------------------------------

you have my +1 vote.

regards

> use view functions to emit changes
> ----------------------------------
>
>                 Key: COUCHDB-987
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-987
>             Project: CouchDB
>          Issue Type: New Feature
>    Affects Versions: 1.2
>            Reporter: Benoit Chesneau
>            Assignee: Benoit Chesneau
>             Fix For: 1.2
>
>         Attachments: view_changes.patch
>
>
> Add the ability to use map view function to filter changes  instead of duplicating the
> effort in writing a filter function that does the same, which is
> apparently done a lot. 
> Each time a value could be emitted, a change  is returned. The url is :
> http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname
> On other advantage is that I can also use this in an external indexer.
> Branch is available on my github repo : 
> https://github.com/benoitc/couchdb/tree/view_changes
> diff has been attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-987) use view functions to emit changes

Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Chesneau updated COUCHDB-987:
------------------------------------

    Attachment: view_changes.patch

> use view functions to emit changes
> ----------------------------------
>
>                 Key: COUCHDB-987
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-987
>             Project: CouchDB
>          Issue Type: New Feature
>    Affects Versions: 1.2
>            Reporter: Benoit Chesneau
>            Assignee: Benoit Chesneau
>             Fix For: 1.2
>
>         Attachments: view_changes.patch
>
>
> Add the ability to use map view function to filter changes  instead of duplicating the
> effort in writing a filter function that does the same, which is
> apparently done a lot. 
> Each time a value could be emitted, a change  is returned. The url is :
> http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname
> On other advantage is that I can also use this in an external indexer.
> Branch is available on my github repo : 
> https://github.com/benoitc/couchdb/tree/view_changes
> diff has been attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Commented] (COUCHDB-987) use view functions to emit changes

Posted by "Michael Reuss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13266487#comment-13266487 ] 

Michael Reuss commented on COUCHDB-987:
---------------------------------------

Thanks for this great feature that finally made it to me in 1.2 ;-) 
I was able to find the tests that explain the usage, but alas, it doesn't work for me as expected: I don't see document deletions any more in the changes feed. Is that on purpose? I suppose, I can't just emit a key in my view for deleted docs. Could we add deleted documents to the _view filter or do I miss something in the intended use?

Thanks, Micha. 
                
> use view functions to emit changes
> ----------------------------------
>
>                 Key: COUCHDB-987
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-987
>             Project: CouchDB
>          Issue Type: New Feature
>    Affects Versions: 1.2
>            Reporter: Benoit Chesneau
>            Assignee: Benoit Chesneau
>             Fix For: 1.2
>
>         Attachments: view_changes.patch
>
>
> Add the ability to use map view function to filter changes  instead of duplicating the
> effort in writing a filter function that does the same, which is
> apparently done a lot. 
> Each time a value could be emitted, a change  is returned. The url is :
> http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname
> On other advantage is that I can also use this in an external indexer.
> Branch is available on my github repo : 
> https://github.com/benoitc/couchdb/tree/view_changes
> diff has been attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (COUCHDB-987) use view functions to emit changes

Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Chesneau closed COUCHDB-987.
-----------------------------------

    Resolution: Fixed

Patch is waiting since a while without nothing against it. Commited in trunk.

> use view functions to emit changes
> ----------------------------------
>
>                 Key: COUCHDB-987
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-987
>             Project: CouchDB
>          Issue Type: New Feature
>    Affects Versions: 1.2
>            Reporter: Benoit Chesneau
>            Assignee: Benoit Chesneau
>             Fix For: 1.2
>
>         Attachments: view_changes.patch
>
>
> Add the ability to use map view function to filter changes  instead of duplicating the
> effort in writing a filter function that does the same, which is
> apparently done a lot. 
> Each time a value could be emitted, a change  is returned. The url is :
> http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname
> On other advantage is that I can also use this in an external indexer.
> Branch is available on my github repo : 
> https://github.com/benoitc/couchdb/tree/view_changes
> diff has been attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.