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 2017/10/09 06:44:14 UTC

kylin git commit: KYLIN-2920 Failed to get streaming config on WebUI

Repository: kylin
Updated Branches:
  refs/heads/2.2.x 4910c4632 -> 2d5f80cc9


KYLIN-2920 Failed to get streaming config on WebUI

Signed-off-by: lidongsjtu <li...@apache.org>


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

Branch: refs/heads/2.2.x
Commit: 2d5f80cc95cc15977147042511861ff2a6e7fe43
Parents: 4910c46
Author: luguosheng1314 <55...@qq.com>
Authored: Mon Oct 9 14:32:45 2017 +0800
Committer: lidongsjtu <li...@apache.org>
Committed: Mon Oct 9 14:34:31 2017 +0800

----------------------------------------------------------------------
 webapp/app/js/controllers/streamingConfig.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/2d5f80cc/webapp/app/js/controllers/streamingConfig.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/controllers/streamingConfig.js b/webapp/app/js/controllers/streamingConfig.js
index 1caa32e..32b09c6 100644
--- a/webapp/app/js/controllers/streamingConfig.js
+++ b/webapp/app/js/controllers/streamingConfig.js
@@ -28,10 +28,10 @@ KylinApp.controller('streamingConfigCtrl', function ($scope,StreamingService, $q
   }
 
   if($scope.state.mode=='edit'&& $scope.state.target=='kfkConfig' && $scope.state.tableName){
-    StreamingService.getConfig({table:$scope.state.tableName}, function (configs) {
+    StreamingService.getConfig({table:$scope.state.tableName, project: ProjectModel.selectedProject}, function (configs) {
       if(!!configs[0]&&configs[0].name.toUpperCase() == $scope.state.tableName.toUpperCase()){
         $scope.updateStreamingMeta(configs[0]);
-        StreamingService.getKfkConfig({kafkaConfigName:$scope.streamingMeta.name}, function (streamings) {
+        StreamingService.getKfkConfig({kafkaConfigName:$scope.streamingMeta.name, project: ProjectModel.selectedProject}, function (streamings) {
           if(!!streamings[0]&&streamings[0].name.toUpperCase() == $scope.state.tableName.toUpperCase()){
             $scope.updateKafkaMeta(streamings[0]);
           }
@@ -121,10 +121,10 @@ KylinApp.controller('streamingConfigCtrl', function ($scope,StreamingService, $q
     var streamingName = table.database+"."+table.name;
     $scope.streamingMeta = {};
     $scope.kafkaMeta = {};
-    StreamingService.getConfig({table:streamingName}, function (configs) {
+    StreamingService.getConfig({table:streamingName, project: ProjectModel.selectedProject}, function (configs) {
       if(!!configs[0]&&configs[0].name.toUpperCase() == streamingName.toUpperCase()){
         $scope.streamingMeta = configs[0];
-        StreamingService.getKfkConfig({kafkaConfigName:$scope.streamingMeta.name}, function (streamings) {
+        StreamingService.getKfkConfig({kafkaConfigName:$scope.streamingMeta.name, project: ProjectModel.selectedProject}, function (streamings) {
           if(!!streamings[0]&&streamings[0].name.toUpperCase() == streamingName.toUpperCase()){
             $scope.kafkaMeta = streamings[0];
           }