kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject kylin git commit: KYLIN-1246 get cubes API update - offset, limit not required
Date Wed, 23 Dec 2015 08:03:28 GMT
Repository: kylin
Updated Branches:
  refs/heads/2.0-rc 28f6af376 -> d881b0b2c


KYLIN-1246 get cubes API update - offset,limit not required


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/d881b0b2
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/d881b0b2
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/d881b0b2

Branch: refs/heads/2.0-rc
Commit: d881b0b2c214bd35eb5ea5ed4887a8483a86d5e4
Parents: 28f6af3
Author: jian <jiazhong@apache.org>
Authored: Wed Dec 23 16:03:01 2015 +0800
Committer: jian <jiazhong@apache.org>
Committed: Wed Dec 23 16:03:16 2015 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kylin/rest/service/CubeService.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/d881b0b2/server/src/main/java/org/apache/kylin/rest/service/CubeService.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/kylin/rest/service/CubeService.java b/server/src/main/java/org/apache/kylin/rest/service/CubeService.java
index 6670de1..037dace 100644
--- a/server/src/main/java/org/apache/kylin/rest/service/CubeService.java
+++ b/server/src/main/java/org/apache/kylin/rest/service/CubeService.java
@@ -131,11 +131,7 @@ public class CubeService extends BasicService {
         List<CubeInstance> cubes;
         cubes = listAllCubes(cubeName, projectName, modelName);
 
-        if (limit == null || offset == null) {
-            return cubes;
-        }
-
-        int climit = (null == limit) ? 30 : limit;
+        int climit = (null == limit) ? cubes.size() : limit;
         int coffset = (null == offset) ? 0 : offset;
 
         if (cubes.size() <= coffset) {


Mime
View raw message