You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/09/04 07:13:20 UTC

[GitHub] willholley commented on a change in pull request #765: include mrview options in _explain result

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:
users@infra.apache.org


With regards,
Apache Git Services