garrensmith commented on a change in pull request #1158: [partitioned dbs]
Updates to index editor and index clone modal
URL: https://github.com/apache/couchdb-fauxton/pull/1158#discussion_r235001853
##########
File path: app/addons/documents/index-editor/reducers.js
##########
@@ -11,11 +11,14 @@
// the License.
import ActionTypes from './actiontypes';
-import Resources from "../resources";
+import Resources from '../resources';
+import Helpers from '../helpers';
const defaultMap = 'function (doc) {\n emit(doc._id, 1);\n}';
const defaultReduce = 'function (keys, values, rereduce) {\n if (rereduce)
{\n return sum(values);\n } else {\n return values.length;\n }\n}';
const builtInReducers = ['_sum', '_count', '_stats'];
Review comment:
There is the other couchdb reducer you will need to add in as well.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services