You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/03/03 10:59:19 UTC

[15/23] incubator-kylin git commit: Remove the default 30 limit on ProjectService.listAllProjects as this may cause user couldn’t get the project.

Remove the default 30 limit on ProjectService.listAllProjects as this may cause user couldn’t get the project.

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

Branch: refs/heads/master
Commit: 57a1057e38282d37d9240902004b98541a30fefd
Parents: f296c20
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Wed Feb 11 15:58:16 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Wed Feb 11 15:58:16 2015 +0800

----------------------------------------------------------------------
 .../src/main/java/com/kylinolap/rest/service/ProjectService.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/57a1057e/server/src/main/java/com/kylinolap/rest/service/ProjectService.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/com/kylinolap/rest/service/ProjectService.java b/server/src/main/java/com/kylinolap/rest/service/ProjectService.java
index 73c7302..7fb066a 100644
--- a/server/src/main/java/com/kylinolap/rest/service/ProjectService.java
+++ b/server/src/main/java/com/kylinolap/rest/service/ProjectService.java
@@ -84,7 +84,7 @@ public class ProjectService extends BasicService {
     public List<ProjectInstance> listAllProjects(final Integer limit, final Integer offset) {
         List<ProjectInstance> projects = getProjectManager().listAllProjects();
 
-        int climit = (null == limit) ? 30 : limit;
+        int climit = (null == limit) ? Integer.MAX_VALUE : limit;
         int coffset = (null == offset) ? 0 : offset;
 
         if (projects.size() <= coffset) {