Dharshana M Krishnamoorthy created ATLAS-4222:
-------------------------------------------------

             Summary: [Atlas: Audits] When custom attributes are updated for an 
entity, additional information is present in the audits
                 Key: ATLAS-4222
                 URL: https://issues.apache.org/jira/browse/ATLAS-4222
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
            Reporter: Dharshana M Krishnamoorthy
         Attachments: Screenshot 2021-03-22 at 11.10.54 PM.png

*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 :*
{code:java}
{
    "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
}{code}
Only the *customAttributes* has to be updated

*Audit for: Update user-defined property :*
{code:java}
 {
    "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
}{code}
*Audit for: remove user-defined property :***
{code:java}
{
    "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
} {code}
UI operation screen shot is added for reference:

!Screenshot 2021-03-22 at 11.10.54 PM.png|width=917,height=478!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to