Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4222

[Atlas: Audits] When custom attributes are updated for an entity, additional information is present in the audits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • None
    • atlas-core
    • None

    Description

      Scenario:

      • Add user defined properties to an entity
      • Update user defined properties to an entity
      • Remove user defined properties from an entity

      Expectation:

      1 audit entry with what is the update/action 

       

      Additional information like current entity type_name, guid, and other information are present

      Audit for: Add user-defined property :

      {
          "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
          "timestamp": 1616237977768,
          "user": "hrt_qa",
          "action": "CUSTOM_ATTRIBUTE_UPDATE",
          "details": "Updated custom attribute: {\"typeName\":\"hbase_table\",\"guid\":\"269582c2-9b05-4abf-9abb-71f587c465e0\",\"isIncomplete\":false,\"provenanceType\":0,\"version\":0,\"customAttributes\":{\"a\":\"1\",\"b\":\"2\",\"c\":\"3\"},\"proxy\":false}",
          "eventKey": "269582c2-9b05-4abf-9abb-71f587c465e0:1616237977768:0:1616237977821",
          "entity": None,
          "type": None
      }

      Only the customAttributes has to be updated

      Audit for: Update user-defined property :

       {
          "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
          "timestamp": 1616238083948,
          "user": "hrt_qa",
          "action": "CUSTOM_ATTRIBUTE_UPDATE",
          "details": "Updated custom attribute: {\"typeName\":\"hbase_table\",\"guid\":\"269582c2-9b05-4abf-9abb-71f587c465e0\",\"isIncomplete\":false,\"provenanceType\":0,\"version\":0,\"customAttributes\":{\"a\":\"2\",\"b\":\"2\",\"d\":\"5\"},\"proxy\":false}",
          "eventKey": "269582c2-9b05-4abf-9abb-71f587c465e0:1616238083948:0:1616238083988",
          "entity": None,
          "type": None
      }

      Audit for: remove user-defined property :**

      {
          "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
          "timestamp": 1616238309523,
          "user": "hrt_qa",
          "action": "CUSTOM_ATTRIBUTE_UPDATE",
          "details": "Updated custom attribute: {\"typeName\":\"hbase_table\",\"guid\":\"269582c2-9b05-4abf-9abb-71f587c465e0\",\"isIncomplete\":false,\"provenanceType\":0,\"version\":0,\"customAttributes\":{},\"proxy\":false}",
          "eventKey": "269582c2-9b05-4abf-9abb-71f587c465e0:1616238309523:0:1616238309558",
          "entity": None,
          "type": None
      } 

      UI operation screen shot is added for reference:

      Attachments

        1. Screenshot 2021-03-22 at 11.10.54 PM.png
          208 kB
          Dharshana M Krishnamoorthy

        Activity

          People

            Unassigned Unassigned
            dharshmk Dharshana M Krishnamoorthy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: