Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1430

There are some duplicate keys in some js files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • admin
    • Patch

    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:

      /**
        * @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");
      

      the keys of 'createDate' and 'updateDate' are duplicated.

      Attachments

        1. 0001-RANGER-1430.patch
          8 kB
          Qiang Zhang

        Activity

          People

            zhangqiang2 Qiang Zhang
            zhangqiang2 Qiang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: