[ 
https://issues.apache.org/jira/browse/ATLAS-4220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dharshana M Krishnamoorthy updated ATLAS-4220:
----------------------------------------------
    Description: 
Scenario:
{code:java}
Add multiple business metadata attribute to an entity
 {code}
Add 2 attributes of 2 different business metadata

!Screenshot 2021-03-20 at 4.52.56 PM.png|width=606,height=222!

Sample Custom attribute update: Only one audit is created in case of custom 
defined attributes.

!Screenshot 2021-03-20 at 4.35.39 PM.png|width=829,height=474!

*Current output:*
{code:java}
{
    "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
    "timestamp": 1616239355837,
    "user": "hrt_qa",
    "action": "BUSINESS_ATTRIBUTE_UPDATE",
    "details": "Updated business attributes: 
{\"typeName\":\"bm_dharsh_type\",\"attributes\":{\"attrib_1\":\"bbb\"}}",
    "eventKey": 
"269582c2-9b05-4abf-9abb-71f587c465e0:1616239355837:1:1616239355872",
    "entity": None,
    "type": None
},
{
    "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
    "timestamp": 1616239355837,
    "user": "hrt_qa",
    "action": "BUSINESS_ATTRIBUTE_UPDATE",
    "details": "Updated business attributes: 
{\"typeName\":\"bm_dharsh_2\",\"attributes\":{\"attr_1\":\"aaa\"}}",
    "eventKey": 
"269582c2-9b05-4abf-9abb-71f587c465e0:1616239355837:0:1616239355872",
    "entity": None,
    "type": None
} {code}
*Expectation:*

Only one audit entry has to be created when business metadata attributes are 
updated, even when they belong to different metadata. Expecting an update 
similar to the above shown used defined attribute update
{code:java}
 {
    "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
    "timestamp": 1616239355837,
    "user": "hrt_qa",
    "action": "BUSINESS_ATTRIBUTE_UPDATE",
    "details": "Updated business attributes: 
[{\"typeName\":\"bm_dharsh_type\",\"attributes\":{\"attrib_1\":\"bbb\"}},{\"typeName\":\"bm_dharsh_2\",\"attributes\":{\"attr_1\":\"aaa\"}}]",
    "eventKey": 
"269582c2-9b05-4abf-9abb-71f587c465e0:1616239355837:1:1616239355872",
    "entity": None,
    "type": None
}{code}
 

  was:
Scenario:
{code:java}

Add multiple business metadata attribute to an entity
 {code}
Add 2 attributes of 2 different business metadata

!Screenshot 2021-03-20 at 4.52.56 PM.png|width=606,height=222!

Sample Custom attribute update: Only one audit is created in case of custom 
defined attributes.

!Screenshot 2021-03-20 at 4.35.39 PM.png|width=829,height=474!

*Expectation:*

Only one audit entry has to be created when business metadata attributes are 
updated, even when they belong to different metadata. Expecting an update 
similar to the above shown used defined attribute update

 


> [Atlas: Audits] When business metadata attribute from different business 
> metadata is added multiple audits are created
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-4220
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4220
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Dharshana M Krishnamoorthy
>            Priority: Major
>         Attachments: Screenshot 2021-03-20 at 4.35.39 PM.png, Screenshot 
> 2021-03-20 at 4.52.56 PM.png
>
>
> Scenario:
> {code:java}
> Add multiple business metadata attribute to an entity
>  {code}
> Add 2 attributes of 2 different business metadata
> !Screenshot 2021-03-20 at 4.52.56 PM.png|width=606,height=222!
> Sample Custom attribute update: Only one audit is created in case of custom 
> defined attributes.
> !Screenshot 2021-03-20 at 4.35.39 PM.png|width=829,height=474!
> *Current output:*
> {code:java}
> {
>     "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
>     "timestamp": 1616239355837,
>     "user": "hrt_qa",
>     "action": "BUSINESS_ATTRIBUTE_UPDATE",
>     "details": "Updated business attributes: 
> {\"typeName\":\"bm_dharsh_type\",\"attributes\":{\"attrib_1\":\"bbb\"}}",
>     "eventKey": 
> "269582c2-9b05-4abf-9abb-71f587c465e0:1616239355837:1:1616239355872",
>     "entity": None,
>     "type": None
> },
> {
>     "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
>     "timestamp": 1616239355837,
>     "user": "hrt_qa",
>     "action": "BUSINESS_ATTRIBUTE_UPDATE",
>     "details": "Updated business attributes: 
> {\"typeName\":\"bm_dharsh_2\",\"attributes\":{\"attr_1\":\"aaa\"}}",
>     "eventKey": 
> "269582c2-9b05-4abf-9abb-71f587c465e0:1616239355837:0:1616239355872",
>     "entity": None,
>     "type": None
> } {code}
> *Expectation:*
> Only one audit entry has to be created when business metadata attributes are 
> updated, even when they belong to different metadata. Expecting an update 
> similar to the above shown used defined attribute update
> {code:java}
>  {
>     "entityId": "269582c2-9b05-4abf-9abb-71f587c465e0",
>     "timestamp": 1616239355837,
>     "user": "hrt_qa",
>     "action": "BUSINESS_ATTRIBUTE_UPDATE",
>     "details": "Updated business attributes: 
> [{\"typeName\":\"bm_dharsh_type\",\"attributes\":{\"attrib_1\":\"bbb\"}},{\"typeName\":\"bm_dharsh_2\",\"attributes\":{\"attr_1\":\"aaa\"}}]",
>     "eventKey": 
> "269582c2-9b05-4abf-9abb-71f587c465e0:1616239355837:1:1616239355872",
>     "entity": None,
>     "type": None
> }{code}
>  



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

Reply via email to