Dharshana M Krishnamoorthy created ATLAS-4234:
-------------------------------------------------

             Summary: [Atlas: Audits] When one of the attributes of a 
classification is updated, all the attributes are getting displayed in the 
latest audit
                 Key: ATLAS-4234
                 URL: https://issues.apache.org/jira/browse/ATLAS-4234
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
            Reporter: Dharshana M Krishnamoorthy


Classification has 2 attributes: *name* and *id*

*Scenario:*

Setting both the values initially creates a *classification update* audit

Eg:
{code:java}
{'name': 'val1', 'id': 1}  {code}
audit for the same:
{code:java}
u'details': u'Updated classification: 
{"typeName":"tag_type_kgmxl","attributes":{"name":"val1","id":1},"entityGuid":"93160c69-30f4-4fdf-a99b-8228a61d5130","entityStatus":"ACTIVE","propagate":true,"removePropagationsOnEntityDelete":false}',
 {code}
Now update only one of the attributes
{code:java}
{'name': 'new_val'} {code}
We expect the latest audit should contain only the details of the updated 
attribute , but it has both. Please refer below
{code:java}
u'details': u'Updated classification: 
{"typeName":"tag_type_kgmxl","attributes":{"name":"new_val","id":1},"entityGuid":"93160c69-30f4-4fdf-a99b-8228a61d5130","entityStatus":"ACTIVE","propagate":true,"removePropagationsOnEntityDelete":false}'
 {code}
*Expectation:*
{code:java}
u'details': u'Updated classification: 
{"typeName":"tag_type_kgmxl","attributes":{"name":"new_val"},"entityGuid":"93160c69-30f4-4fdf-a99b-8228a61d5130","entityStatus":"ACTIVE","propagate":true,"removePropagationsOnEntityDelete":false}',
 {code}



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

Reply via email to