From e7cab8b6dde875c8e39b4d6f094a43b135aa16ce Mon Sep 17 00:00:00 2001 From: chenzhx Date: Mon, 4 Dec 2017 12:24:55 +0800 Subject: [PATCH] KYLIN 3067 provide dim cap in GUL --- webapp/app/js/controllers/cubeAdvanceSetting.js | 6 ++++++ .../app/partials/cubeDesigner/advanced_settings.html | 18 +++++++++++++++++- webapp/app/partials/cubeDesigner/measures.html | 3 ++- webapp/app/partials/cubeDesigner/streamingConfig.html | 3 ++- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/webapp/app/js/controllers/cubeAdvanceSetting.js b/webapp/app/js/controllers/cubeAdvanceSetting.js index 73616f257..ca71bf4e2 100755 --- a/webapp/app/js/controllers/cubeAdvanceSetting.js +++ b/webapp/app/js/controllers/cubeAdvanceSetting.js @@ -23,6 +23,7 @@ KylinApp.controller('CubeAdvanceSettingCtrl', function ($scope, $modal,cubeConfi var needLengthKeyList=cubeConfig.needSetLengthEncodingList; $scope.convertedRowkeys = []; + $scope.dim_cap = $scope.cubeMetaFrame.aggregation_groups.length > 0 && $scope.cubeMetaFrame.aggregation_groups[0].select_rule.dim_cap ? $scope.cubeMetaFrame.aggregation_groups[0].select_rule.dim_cap : 0; angular.forEach($scope.cubeMetaFrame.rowkey.rowkey_columns,function(item){ item.encoding=$scope.removeVersion(item.encoding); var _valueLength; @@ -104,6 +105,11 @@ KylinApp.controller('CubeAdvanceSettingCtrl', function ($scope, $modal,cubeConfi $scope.sortableOptions = { stop:$scope.resortRowkey }; + $scope.changeDimCap = function (dim_cap) { + angular.forEach($scope.cubeMetaFrame.aggregation_groups, function (agg) { + agg.select_rule.dim_cap = dim_cap + }) + } $scope.addNewHierarchy = function(grp){ grp.select_rule.hierarchy_dims.push([]); diff --git a/webapp/app/partials/cubeDesigner/advanced_settings.html b/webapp/app/partials/cubeDesigner/advanced_settings.html index 5d53075ae..b3dfcd90f 100755 --- a/webapp/app/partials/cubeDesigner/advanced_settings.html +++ b/webapp/app/partials/cubeDesigner/advanced_settings.html @@ -33,7 +33,15 @@ class="table table-hover list"> ID - Aggregation Groups + + Aggregation Groups + + + Max Dimension Combination: + + + + @@ -511,6 +519,14 @@ +