You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jens Alfke <je...@mooseyard.com> on 2010/02/24 17:56:39 UTC

revs_info param no longer working with _all_docs query

I'm updating CouchObjC, an Objective-C/Cocoa adapter for CouchDB (my fork is here.) It was last updated a year ago and seems to have some incompatibilities with CouchDB 0.10, judging by the unit-test failures.

One of the failures I can't figure out is that it sends a query for all design docs with their revision histories:

GET /DBNAME/_all_docs?startkey=%22_design%22&endkey=%22_design0%22&include_docs=true&revs_info=true

But the documents in the response don't contain the special "_rev_infos" keys (or even "_revisions") as the HTTP Document API wiki page says they should.

I've tried various alternate possibilities for the "revs_info=" parameter ("rev_infos", "rev_info", "revs") but to no avail. Does this feature just not exist anymore, or did the naming system change?

—Jens

Re: revs_info param no longer working with _all_docs query

Posted by Jens Alfke <je...@mooseyard.com>.
On Feb 25, 2010, at 1:06 AM, Brian Candler wrote:

> I believe it's this issue:
> https://issues.apache.org/jira/browse/COUCHDB-549
> 
> There are a bunch of options you can use when you GET a document directly,
> but which are ignored when you get the document indirectly via a view and
> include_docs=true.

Yes, that must be it. Thanks for the link. This behavior seems to have changed since 0.8, or maybe 0.9.

Anyone know if this is an accidental regression, or an intentional design?

—Jens

Re: revs_info param no longer working with _all_docs query

Posted by Brian Candler <B....@pobox.com>.
On Wed, Feb 24, 2010 at 02:11:55PM -0800, J Chris Anderson wrote:
> > One of the failures I can't figure out is that it sends a query for all design docs with their revision histories:
> > 
> > GET /DBNAME/_all_docs?startkey=%22_design%22&endkey=%22_design0%22&include_docs=true&revs_info=true
> 
> Good question -- I don't remember changing this on purpose. I'd have to grep the source code to know for sure, though.
> 
> Anyone else have a more definitive answer?

I believe it's this issue:
https://issues.apache.org/jira/browse/COUCHDB-549

There are a bunch of options you can use when you GET a document directly,
but which are ignored when you get the document indirectly via a view and
include_docs=true.

Re: revs_info param no longer working with _all_docs query

Posted by J Chris Anderson <jc...@gmail.com>.
On Feb 24, 2010, at 8:56 AM, Jens Alfke wrote:

> I'm updating CouchObjC, an Objective-C/Cocoa adapter for CouchDB (my fork is here.) It was last updated a year ago and seems to have some incompatibilities with CouchDB 0.10, judging by the unit-test failures.
> 
> One of the failures I can't figure out is that it sends a query for all design docs with their revision histories:
> 
> GET /DBNAME/_all_docs?startkey=%22_design%22&endkey=%22_design0%22&include_docs=true&revs_info=true
> 
> But the documents in the response don't contain the special "_rev_infos" keys (or even "_revisions") as the HTTP Document API wiki page says they should.
> 
> I've tried various alternate possibilities for the "revs_info=" parameter ("rev_infos", "rev_info", "revs") but to no avail. Does this feature just not exist anymore, or did the naming system change?

Good question -- I don't remember changing this on purpose. I'd have to grep the source code to know for sure, though.

Anyone else have a more definitive answer?

Chris