You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jens Alfke (JIRA)" <ji...@apache.org> on 2012/09/05 02:29:07 UTC

[jira] [Created] (COUCHDB-1529) Add API to find the deleted branches of a doc's rev tree

Jens Alfke created COUCHDB-1529:
-----------------------------------

             Summary: Add API to find the deleted branches of a doc's rev tree
                 Key: COUCHDB-1529
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1529
             Project: CouchDB
          Issue Type: Improvement
    Affects Versions: 1.2
            Reporter: Jens Alfke
            Priority: Minor


There's no efficient way to discover the complete revision tree of a document. API options like ?open_revs=all or ?conflicts will only return active/undeleted revisions; it won't discover deleted branches resulting from already-resolved conflicts.

There should be an extra option, like "?include_deleted=true", to use along with open_revs to tell it to return even deleted leaf revisions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COUCHDB-1529) Add API to find the deleted branches of a doc's rev tree

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

Jens Alfke commented on COUCHDB-1529:
-------------------------------------

Note: It's possible to do this currently by iterating through the database's entire _changes feed, since it includes deletions. That's expensive, though.
                
> Add API to find the deleted branches of a doc's rev tree
> --------------------------------------------------------
>
>                 Key: COUCHDB-1529
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1529
>             Project: CouchDB
>          Issue Type: Improvement
>    Affects Versions: 1.2
>            Reporter: Jens Alfke
>            Priority: Minor
>
> There's no efficient way to discover the complete revision tree of a document. API options like ?open_revs=all or ?conflicts will only return active/undeleted revisions; it won't discover deleted branches resulting from already-resolved conflicts.
> There should be an extra option, like "?include_deleted=true", to use along with open_revs to tell it to return even deleted leaf revisions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (COUCHDB-1529) Add API to find the deleted branches of a doc's rev tree

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

Paul Joseph Davis commented on COUCHDB-1529:
--------------------------------------------

Perhaps simpler we might just want to add a ?include_tree=true or ?revs_as_tree=true and maybe remove a couple of the other weirder options to simplify this API further.
                
> Add API to find the deleted branches of a doc's rev tree
> --------------------------------------------------------
>
>                 Key: COUCHDB-1529
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1529
>             Project: CouchDB
>          Issue Type: Improvement
>    Affects Versions: 1.2
>            Reporter: Jens Alfke
>            Priority: Minor
>
> There's no efficient way to discover the complete revision tree of a document. API options like ?open_revs=all or ?conflicts will only return active/undeleted revisions; it won't discover deleted branches resulting from already-resolved conflicts.
> There should be an extra option, like "?include_deleted=true", to use along with open_revs to tell it to return even deleted leaf revisions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira