[
https://issues.apache.org/jira/browse/COUCHDB-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087489#comment-13087489
]
Paul Joseph Davis commented on COUCHDB-1252:
--------------------------------------------
@Jason,
A couple weeks ago I would have agreed completely with you. So much in fact
that when someone reported a bug that _bulk_docs was storing the body of docs
submitted with _deleted: true set, it was immediately assumed to be a bug and
was promptly fixed.
Until Damien said "That was on purpose so people can say why something was
deleted."
In reality, the only "special" sauce for deleted docs is that they're not
considered conflicts. Other than that, you can still create a doc based on the
revision of a deleted doc. In fact you can rescue an edit history from any
known revision. But I digress.
Either way, "auditing information about deleted docs" is apparently precisely
what deleted doc bodies were for, so I don't see a reason to not have an option
to see them.
> A way to have views return _deleted documents
> ---------------------------------------------
>
> Key: COUCHDB-1252
> URL: https://issues.apache.org/jira/browse/COUCHDB-1252
> Project: CouchDB
> Issue Type: New Feature
> Components: JavaScript View Server
> Affects Versions: 1.1, 1.0.3
> Reporter: James Howe
>
> Given that documents can be 'soft' deleted / deleted with auditing data by
> updating the document to include the _deleted property, it would be
> incredibly useful if there were a way to access these documents in a map
> function. Otherwise it is very difficult to find the auditing data - even
> more so if the original ids are unknown.
> I was thinking along the lines of a view query parameter 'include_deleted',
> but don't really mind how this is implemented, as long as it is there.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira