Repository: kylin Updated Branches: refs/heads/master 2ca82411c -> da35e392d
KYLIN-2920 Failed to get streaming config on WebUI Signed-off-by: lidongsjtu <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/da35e392 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/da35e392 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/da35e392 Branch: refs/heads/master Commit: da35e392d372927daa9fe069b375923f625d8ca0 Parents: 2ca8241 Author: luguosheng1314 <[email protected]> Authored: Mon Oct 9 14:32:45 2017 +0800 Committer: lidongsjtu <[email protected]> Committed: Mon Oct 9 17:01:07 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/da35e392/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]; }
