willholley commented on a change in pull request #765: include mrview options 
in _explain result
URL: https://github.com/apache/couchdb/pull/765#discussion_r136756494
 
 

 ##########
 File path: src/mango/src/mango_cursor_view.erl
 ##########
 @@ -56,18 +56,31 @@ create(Db, Indexes, Selector, Opts) ->
 
 explain(Cursor) ->
     #cursor{
-        index = Idx,
-        ranges = Ranges
+        opts = Opts
     } = Cursor,
-    case Ranges of
-        [empty] ->
-            [{range, empty}];
-        _ ->
-            [{range, {[
-            {start_key, mango_idx:start_key(Idx, Ranges)},
-            {end_key, mango_idx:end_key(Idx, Ranges)}
-        ]}}]
-    end.
+
 
 Review comment:
   fauxton just displays the raw JSON result from `_explain`, so it won't be a 
problem. The `range` property is now part of the `mrargs` object in the result.
 
----------------------------------------------------------------
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

Reply via email to