Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
Description
Classification has 2 attributes: name and id
Scenario:
Setting both the values initially creates a classification update audit
Eg:
{'name': 'val1', 'id': 1}
audit for the same:
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}',
Now update only one of the attributes
{'name': 'new_val'}
We expect the latest audit should contain only the details of the updated attribute , but it has both. Please refer below
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}'
Expectation:
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}',