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-1203 refresh model timestamp at frontend after backend updated
Date Tue, 08 Dec 2015 07:15:16 GMT
Repository: kylin
Updated Branches:
  refs/heads/1.x-staging 9ad77cca8 -> a1c940dd5


KYLIN-1203 refresh model timestamp at frontend after backend updated


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

Branch: refs/heads/1.x-staging
Commit: a1c940dd5cffd007d62c71e3700ac71df6845973
Parents: 9ad77cc
Author: jian <jiazhong@apache.org>
Authored: Tue Dec 8 15:12:55 2015 +0800
Committer: jian <jiazhong@apache.org>
Committed: Tue Dec 8 15:12:55 2015 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/cubeEdit.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/a1c940dd/webapp/app/js/controllers/cubeEdit.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/cubeEdit.js b/webapp/app/js/controllers/cubeEdit.js
index 2dade99..1178bee 100755
--- a/webapp/app/js/controllers/cubeEdit.js
+++ b/webapp/app/js/controllers/cubeEdit.js
@@ -289,6 +289,18 @@ KylinApp.controller('CubeEditCtrl', function ($scope, $q, $routeParams,
$locatio
     if ($scope.metaModel.model && ($scope.metaModel.model.partition_desc.partition_date_start
|| $scope.metaModel.model.partition_desc.partition_date_start == 0)) {
       $scope.metaModel.model.partition_desc.partition_date_start += new Date().getTimezoneOffset()
* 60000;
     }
+
+    //update model last modified
+    $scope.statusRefresh();
+  }
+
+  $scope.statusRefresh = function(){
+    ModelService.get({model_name: $scope.cubeMetaFrame.model_name}, function (model) {
+      if (model) {
+        //MetaModel.setMetaModel(model);
+        $scope.metaModel.model.last_modified = model.last_modified;
+      }
+    });
   }
 
   $scope.updateMandatory = function (rowkey_column) {


Mime
View raw message