kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhongj...@apache.org
Subject incubator-kylin git commit: KYLIN-1036, Code Clean
Date Mon, 21 Sep 2015 06:31:29 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging df15cad19 -> 66ae35a17


KYLIN-1036, Code Clean


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

Branch: refs/heads/1.x-staging
Commit: 66ae35a17c407f3ca5cd9026279c40c6c8ffbd28
Parents: df15cad
Author: jiazhong <jiazhong@ebay.com>
Authored: Mon Sep 21 14:28:08 2015 +0800
Committer: jiazhong <jiazhong@ebay.com>
Committed: Mon Sep 21 14:28:08 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/job.js                  | 7 -------
 webapp/app/js/controllers/sourceMeta.js           | 6 ------
 webapp/app/partials/tables/source_table_tree.html | 3 +--
 3 files changed, 1 insertion(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/66ae35a1/webapp/app/js/controllers/job.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/job.js b/webapp/app/js/controllers/job.js
index 79913e1..b1360aa 100644
--- a/webapp/app/js/controllers/job.js
+++ b/webapp/app/js/controllers/job.js
@@ -25,7 +25,6 @@ KylinApp
     JobList.removeAll();
     $scope.jobConfig = jobConfig;
     $scope.cubeName = null;
-    $scope.projects = [];
     $scope.action = {};
 
     $scope.status = [];
@@ -49,12 +48,6 @@ KylinApp
       projectName: $scope.projectModel.selectedProject
     };
 
-    ProjectService.list({}, function (projects) {
-      angular.forEach(projects, function (project, index) {
-        $scope.projects.push(project.name);
-      });
-    });
-
     $scope.list = function (offset, limit) {
       var defer = $q.defer();
       if (!$scope.projectModel.projects.length) {

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/66ae35a1/webapp/app/js/controllers/sourceMeta.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/sourceMeta.js b/webapp/app/js/controllers/sourceMeta.js
index 91e771b..d05dc7f 100755
--- a/webapp/app/js/controllers/sourceMeta.js
+++ b/webapp/app/js/controllers/sourceMeta.js
@@ -76,12 +76,6 @@ KylinApp
       }
     };
 
-    $scope.selectedNode = function(obj){
-      if (obj&&obj.uuid) {
-        return $scope.tableModel.selectedSrcTable;
-      }
-    }
-
     $scope.aceSrcTbChanged = function () {
       $scope.tableModel.selectedSrcDb = [];
       $scope.tableModel.selectedSrcTable = {};

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/66ae35a1/webapp/app/partials/tables/source_table_tree.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/tables/source_table_tree.html b/webapp/app/partials/tables/source_table_tree.html
index 1e6e08f..bdbe079 100755
--- a/webapp/app/partials/tables/source_table_tree.html
+++ b/webapp/app/partials/tables/source_table_tree.html
@@ -38,8 +38,7 @@
                      dirSelection="true"
                      tree-model="tableModel.selectedSrcDb"
                      options="tableModel.treeOptions"
-                     on-selection="showSelected(node)"
-                     selected-node="selectedNode(node)">
+                     on-selection="showSelected(node)">
             {{node.name}} {{!!(node.datatype)?'(' + trimType(node.datatype) + ')' : ''}}
         </treecontrol>
     </div>


Mime
View raw message