[Groonga-commit] droonga/express-droonga at 78f07e9 [master] Move limit specification into output object

Back to archive index

Yoji SHIDARA null+****@clear*****
Thu Aug 22 18:11:06 JST 2013


Yoji SHIDARA	2013-08-22 18:11:06 +0900 (Thu, 22 Aug 2013)

  New Revision: 78f07e9c50eac8c9dd1d9d0e53869d58353e5eb3
  https://github.com/droonga/express-droonga/commit/78f07e9c50eac8c9dd1d9d0e53869d58353e5eb3

  Message:
    Move limit specification into output object

  Modified files:
    lib/adapter/api/rest-request-builder.js
    test/rest-request-builder.test.js

  Modified: lib/adapter/api/rest-request-builder.js (+1 -1)
===================================================================
--- lib/adapter/api/rest-request-builder.js    2013-08-22 17:34:18 +0900 (dcac7b8)
+++ lib/adapter/api/rest-request-builder.js    2013-08-22 18:11:06 +0900 (fb4db0f)
@@ -41,7 +41,7 @@ function searchRequestBuilder(request) {
     queries.result.output.attributes = [];
   }
   if (typeof queryParams.limit == 'string')
-    queries.result.limit = getIntegerValue(queryParams, 'limit');
+    queries.result.output.limit = getIntegerValue(queryParams, 'limit');
   if (typeof queryParams.match_escalation_threshold == 'string')
     queries.result.matchEscalationThreshold = getIntegerValue(queryParams, 'match_escalation_threshold');
   if (typeof queryParams.match_to == 'string')

  Modified: test/rest-request-builder.test.js (+2 -2)
===================================================================
--- test/rest-request-builder.test.js    2013-08-22 17:34:18 +0900 (d841b85)
+++ test/rest-request-builder.test.js    2013-08-22 18:11:06 +0900 (c6e6421)
@@ -53,12 +53,12 @@ suite('building message from REST adapter request', function() {
             source:  'people',
             query:   'foobar',
             offset:  10,
-            limit:   100,
             matchTo: ['realname', 'nickname'],
             sortBy:  ['-realname', '-nickname'],
             output: {
               attributes: ['realname', 'nickname', 'age', 'job'],
-              elements: utils.allElements
+              elements: utils.allElements,
+              limit:   100,
             }
           }
         }
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index