Same here. Chris asked me to submit a futon test case. I opened the
Jira issue and attached a test case. Please vote for the ticket! :-)
On Thu, Apr 29, 2010 at 12:21 PM, Jarrod Roberson
<jarrod@vertigrated.com> wrote:
> On Thu, Apr 29, 2010 at 12:20 PM, Jarrod Roberson <jarrod@vertigrated.com>wrote:
>
>> my debug.js filter that just logged the contents of the request is working.
>> but anything that actually tries to return true/false just hangs with a
>> partially serialzied results
>>
>>
> function(doc, req)
> {
> var ids = JSON.parse(req.body);
> log(toJSON(ids));
> var result = false;
> for (var i = 0; i < ids.length; i++)
> {
> log(ids[i]);
> if (ids[i] == doc._id) { result = true; break; }
> }
> return result;
> }
>
>
>> curl -X POST http://localhost:5984/mydb/_changes?filter=transfer/by_ids -d
>> '
>> ["123","job_id:1234567890"]'
>> {"results":[
>>
>
>
>
> --
> Jarrod Roberson
> 678.551.2852
>
|