[ 
https://issues.apache.org/jira/browse/KYLIN-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266428#comment-16266428
 ] 

Zhixiong Chen commented on KYLIN-3049:
--------------------------------------

Hi,[~peng.jianhua]
There is code that '$scope.state.cubeSchema = 
angular.toJson($scope.cubeMetaFrame, true);' in $scope.prepareCube function.
So you could modify the value '$scope.cubeMetaFrame'.
You don't need to create a new value like cubeObj.
Meanwhile the function 'removeElementInArrayByValue' will be used in other js 
file .
So you could put it in utils.js

> Filter the invalid zero value of "Auto Merge Thresholds" parameter when you 
> create or upate a cube.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-3049
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3049
>             Project: Kylin
>          Issue Type: Bug
>          Components: Web 
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>              Labels: patch, scope
>             Fix For: v2.3.0
>
>         Attachments: 
> 0001-KYLIN-3049-Filter-the-invalid-zero-value-of-Auto-Mer.patch, 
> add_or_update_cube.png, show_cube.png
>
>
> 1. Open the Model page;
> 2. Create a new cube, click the "New Thresholds" button in the "Refresh 
> Setting" tab, and don't input any value( refer to [^add_or_update_cube.png]), 
> then complete the follow steps, at last save it;
> 3. Choose the cube you just created, go to the "Refresh Setting" tab, you 
> will find the zero hours in "Auto Merge Thresholds" list, which is invalid 
> but saved in the server( refer to [^show_cube.png]);
> 4. Similarly, update a existent cube, do the same steps, you will also find 
> the invalid zero value saved in the server.
> As we know, the zero value of "Auto Merge Thresholds" parameter is invalid, 
> so we should filter it before sending it to server.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to