You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Maximillian Dornseif (JIRA)" <ji...@apache.org> on 2008/12/27 20:06:44 UTC
[jira] Created: (COUCHDB-185) group=true is silently dropped in
non-reduce views
group=true is silently dropped in non-reduce views
--------------------------------------------------
Key: COUCHDB-185
URL: https://issues.apache.org/jira/browse/COUCHDB-185
Project: CouchDB
Issue Type: Improvement
Affects Versions: 0.9
Reporter: Maximillian Dornseif
Priority: Trivial
If you query a view without a reduce() function and pass group=true the group parameter is ignored. This does certainly not follow the principle of least astonishment.
One might argue, that requesting grouping on something without reduce is generally an error and thus should result in an HTTP error, but this might break to much existing code.
But at least the fact, that the parameter was ignored should be logged.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-185) group=true is silently dropped in
non-reduce views
Posted by "Maximillian Dornseif (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maximillian Dornseif updated COUCHDB-185:
-----------------------------------------
Attachment: group-drop-warning.patch
This is a crude implementation of logging a message when group=true is set on map-only views.
> group=true is silently dropped in non-reduce views
> --------------------------------------------------
>
> Key: COUCHDB-185
> URL: https://issues.apache.org/jira/browse/COUCHDB-185
> Project: CouchDB
> Issue Type: Improvement
> Affects Versions: 0.9
> Reporter: Maximillian Dornseif
> Priority: Trivial
> Attachments: group-drop-warning.patch
>
>
> If you query a view without a reduce() function and pass group=true the group parameter is ignored. This does certainly not follow the principle of least astonishment.
> One might argue, that requesting grouping on something without reduce is generally an error and thus should result in an HTTP error, but this might break to much existing code.
> But at least the fact, that the parameter was ignored should be logged.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.