couch.js Database.view() should default to {reduce: false}
Bug #1040301 reported by
Jason Gerard DeRose
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UserWebKit |
Fix Released
|
High
|
Jason Gerard DeRose |
Bug Description
This is an idea James Raymond suggested quite a while ago.
The CouchDB API assumes ?reduce=true for views that have a reduce function. The problem is that for code that only uses a view non-reduced (regardless whether there is a reduce function), this code breaks if you later add a reduce function.
The CouchDB API would have been better off defaulting to ?reduce=false, and so we're faking this behavior in our view() and view_sync() functions.
In 12.07 we changed this behavior in Microfiber, and it's proven quite useful. So now we're changing this in couch.js also.
Related branches
lp:~jderose/userwebkit/reduce_true
- James Raymond: Approve
-
Diff: 67 lines (+42/-8)1 file modifiedui/couch.js (+42/-8)
description: | updated |
Changed in userwebkit: | |
status: | In Progress → Fix Released |
To post a comment you must log in.