[
https://issues.apache.org/jira/browse/ATLAS-4234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17319645#comment-17319645
]
Deep Singh commented on ATLAS-4234:
-----------------------------------
The expectation is invalid. It would suggest the name attribute was changed to
new_val and the id attribute was dropped. Which is not the case.
> [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
> Priority: Major
>
> 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)