From a1a38e946ce05fbea74241d6cb8261c3d903abfd Mon Sep 17 00:00:00 2001 From: luguosheng1314 <550175214@qq.com> Date: Mon, 9 Oct 2017 14:32:45 +0800 Subject: [PATCH] KYLIN-2920 Failed to get streaming config on WebUI --- webapp/app/js/controllers/streamingConfig.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]; } -- 2.9.2