couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaus Trainer (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1923) Allow ?attachments=true alongside ?include_docs=true on view
Date Fri, 22 Nov 2013 01:09:35 GMT


Klaus Trainer commented on COUCHDB-1923:

> Would it make sense to share a pattern from the stale/feed parameters
> and turn include_docs into a ternary? E.g. `include_docs=true`,
> `include_docs=attachments`?

Yeah, we would avoid introducing another query parameter by doing so.
However, allowing the values `true` and `false` suggests a boolean type.
In fact, it is currently documented as boolean.  Of course, we can
change the type to string, but then having a string type with values
`true`, `false`, and `attachments` is unintuitive and ugly. Instead, we
could introduce two new query parameter values (e.g. `yes` and
`with_attachments`) that don't suggest that it's a boolean, while
deprecating the values `true` and `false`.

> Allow ?attachments=true alongside ?include_docs=true on view
> ------------------------------------------------------------
>                 Key: COUCHDB-1923
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Nathan Vander Wilt
> I have a situation where it'd be handy to get inline [base64] attachments for the documents
from a view response (already using include_docs=true).
> I wonder if this is as easy a fix as COUCHDB-549 was?

This message was sent by Atlassian JIRA

View raw message