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/11 02:41:04 UTC

[jira] [Resolved] (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 resolved RANGER-1430.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0

> 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
>             Fix For: 1.0.0
>
>         Attachments: 0001-RANGER-1430.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}
> /**
>   * @function schema
>   * This method is meant to be used by UI,
>   * by default we will remove the unrequired attributes from serverSchema
>  */
>  schemaBase : function(){
>     var attrs = _.omit(this.serverSchema, 'id', 'createDate', 'updateDate', "version",
> 				"createDate", "updateDate", "displayOption",
> 				"permList", "status", "updatedBy");
> {code}
> the keys of 'createDate' and 'updateDate' are duplicated.



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