[ 
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}
/**
  * @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.

  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}
/**
                 * @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.


> 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
>         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)

Reply via email to