You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Mark Hammond (JIRA)" <ji...@apache.org> on 2010/02/20 05:11:27 UTC
[jira] Created: (COUCHDB-662) indicate why a document can't be
returned with a view
indicate why a document can't be returned with a view
-----------------------------------------------------
Key: COUCHDB-662
URL: https://issues.apache.org/jira/browse/COUCHDB-662
Project: CouchDB
Issue Type: Improvement
Components: Database Core
Reporter: Mark Hammond
If a view with include_docs=true can't access the document for some reason, the doc element of the returned row is set to null, but the reason for the failure is not recorded. I'm attaching a patch which causes an 'error' element to be returned with the failure reason.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-662) indicate why a document can't be
returned with a view
Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836332#action_12836332 ]
Mark Hammond commented on COUCHDB-662:
--------------------------------------
hrm - the attached patch seems to interact poorly with _all_docs when it wants to record an error reason. I'll try and dig a little more into that later.
> indicate why a document can't be returned with a view
> -----------------------------------------------------
>
> Key: COUCHDB-662
> URL: https://issues.apache.org/jira/browse/COUCHDB-662
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Reporter: Mark Hammond
> Attachments: null_doc_reason.patch
>
>
> If a view with include_docs=true can't access the document for some reason, the doc element of the returned row is set to null, but the reason for the failure is not recorded. I'm attaching a patch which causes an 'error' element to be returned with the failure reason.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-662) indicate why a document can't be
returned with a view
Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hammond updated COUCHDB-662:
---------------------------------
Attachment: null_doc_reason.patch
trivial patch to include the error reason.
> indicate why a document can't be returned with a view
> -----------------------------------------------------
>
> Key: COUCHDB-662
> URL: https://issues.apache.org/jira/browse/COUCHDB-662
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Reporter: Mark Hammond
> Attachments: null_doc_reason.patch
>
>
> If a view with include_docs=true can't access the document for some reason, the doc element of the returned row is set to null, but the reason for the failure is not recorded. I'm attaching a patch which causes an 'error' element to be returned with the failure reason.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-662) indicate why a document can't be
returned with a view
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836117#action_12836117 ]
Paul Joseph Davis commented on COUCHDB-662:
-------------------------------------------
+1
Though I might rename Problem to Error to keep consistency in the source. Though Problem has connotations of Houston which also amuses me.
> indicate why a document can't be returned with a view
> -----------------------------------------------------
>
> Key: COUCHDB-662
> URL: https://issues.apache.org/jira/browse/COUCHDB-662
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Reporter: Mark Hammond
> Attachments: null_doc_reason.patch
>
>
> If a view with include_docs=true can't access the document for some reason, the doc element of the returned row is set to null, but the reason for the failure is not recorded. I'm attaching a patch which causes an 'error' element to be returned with the failure reason.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-662) indicate why a document can't be
returned with a view
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-662:
--------------------------------------
Skill Level: Regular Contributors Level (Easy to Medium)
> indicate why a document can't be returned with a view
> -----------------------------------------------------
>
> Key: COUCHDB-662
> URL: https://issues.apache.org/jira/browse/COUCHDB-662
> Project: CouchDB
> Issue Type: Improvement
> Components: Database Core
> Reporter: Mark Hammond
> Attachments: null_doc_reason.patch
>
>
> If a view with include_docs=true can't access the document for some reason, the doc element of the returned row is set to null, but the reason for the failure is not recorded. I'm attaching a patch which causes an 'error' element to be returned with the failure reason.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.