You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/03/08 01:57:38 UTC

[jira] [Updated] (RANGER-1430) There are some duplicate keys in some js files

     [ https://issues.apache.org/jira/browse/RANGER-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Qiang Zhang updated RANGER-1430:
--------------------------------
    Description: 
the function of '_.omit(object, *keys)' is as follows: 
for example:
_.omit({name: 'moe', age: 50, userid: 'moe1'},'userid');
will return 
=> {name: 'moe', age: 50}

in ranger-admin Web UI, some codes are as follows:
{code}
var attrs = _.omit(this.serverSchema, 'id', 'createDate', 'updateDate', "version",
					"createDate", "updateDate", "displayOption",
					"permList", "forUserId", "status", "priGrpId",
					 "updatedBy","isSystem");
{code}
the keys of 'createDate' and 'updateDate' are duplicated.

  was:
the function of '_.omit(object, *keys)' is as follows: 
for example:
_.omit({name: 'moe', age: 50, userid: 'moe1'}, 'userid');
will return => {name: 'moe', age: 50}

in ranger-admin Web UI, some codes are as follows:
{code}
var attrs = _.omit(this.serverSchema, 'id', 'createDate', 'updateDate', "version",
					"createDate", "updateDate", "displayOption",
					"permList", "forUserId", "status", "priGrpId",
					 "updatedBy","isSystem");
{code}
the keys of 'createDate' and 'updateDate' are duplicated.


> There are some duplicate keys in some js files
> ----------------------------------------------
>
>                 Key: RANGER-1430
>                 URL: https://issues.apache.org/jira/browse/RANGER-1430
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>            Priority: Minor
>              Labels: patch
>
> the function of '_.omit(object, *keys)' is as follows: 
> for example:
> _.omit({name: 'moe', age: 50, userid: 'moe1'},'userid');
> will return 
> => {name: 'moe', age: 50}
> in ranger-admin Web UI, some codes are as follows:
> {code}
> var attrs = _.omit(this.serverSchema, 'id', 'createDate', 'updateDate', "version",
> 					"createDate", "updateDate", "displayOption",
> 					"permList", "forUserId", "status", "priGrpId",
> 					 "updatedBy","isSystem");
> {code}
> the keys of 'createDate' and 'updateDate' are duplicated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)