You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/08/18 22:08:13 UTC

[GitHub] [couchdb] stheobald opened a new issue #3086: Make req.body available to custom javascript filters in _changes

stheobald opened a new issue #3086:
URL: https://github.com/apache/couchdb/issues/3086


   ## Summary
   The docs acknowledge that a list of doc_ids involved in a filtered replication can exceed the length available in req.query, and endorse using a POST method instead of GET in this case. doc_ids can be included in the req.body in this situation.
   
   req.body is currently ONLY read for the builtin filters (doc_id for example) and is not made available to custom javascript filters defined in _design docs. This means that any custom filter is subject to the length limitations of req.query, and cannot use req.body to work around this.
   
   ## Desired Behaviour
   req.body should be available for use in custom filters where a body is provided in the request to _changes.
   
   ## Additional context
   I have a situation where the number of doc_ids involved in my filtered replication can reach the limits imposed by req.query. I also need to use a custom filter to satisfy the business requirements in an efficient manner.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb] stheobald commented on issue #3086: Make req.body available to custom javascript filters in _changes

Posted by GitBox <gi...@apache.org>.
stheobald commented on issue #3086:
URL: https://github.com/apache/couchdb/issues/3086#issuecomment-675744901


   I have discussed this with @rnewson.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org