Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
None
-
None
-
None
Description
Scenario:
Add multiple business metadata attribute to an entity
Add 2 attributes of 2 different business metadata
Sample Custom attribute update: Only one audit is created in case of custom defined attributes.
Current output:
{ "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 }
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
{ "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 }