Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4235

[Atlas: Audits] When business metadata attribute or user defined attribute of an entity is updated, action is appearing as "Entity updated" in v1 api response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • None
    • atlas-core
    • None

    Description

      Case 1:

      When business metadata attribute of an entity is updated, action is appearing as "Entity updated" in v1 api response

      {u'action': u'ENTITY_UPDATE',
       u'details': u'Updated business attributes: {"typeName":"eibqk_bm","attributes":{"attrib_1":"111kezor","attrib_2":"222kezor"}}',
       u'entityId': u'29068c0c-8573-4cf2-bddc-ddefd4d38281',
       u'eventKey': u'29068c0c-8573-4cf2-bddc-ddefd4d38281:1617296650400:0:1617296650414',
       u'timestamp': 1617296650400,
       u'user': u'hrt_qa'} 

      As seen in the response, the details displays the right data "Updated business attributes" but action displays "ENTITY_UPDATE"

      Case 2:

      When user-defined attribute  of an entity is updated, action is appearing as "Entity updated" in v1 api response

      {u'action': u'ENTITY_UPDATE',
       u'details': u'Updated custom attribute: {"typeName":"entity_type_jmgur","guid":"a5770082-21b5-48ad-9540-0b2b7073359d","isIncomplete":false,"provenanceType":0,"version":0,"customAttributes":{"obtsv":"test value 2","mjfid":"test value 3","qlomc":"test value 1"},"proxy":false}',
       u'entityId': u'a5770082-21b5-48ad-9540-0b2b7073359d',
       u'eventKey': u'a5770082-21b5-48ad-9540-0b2b7073359d:1617297493442:0:1617297493450',
       u'timestamp': 1617297493442,
       u'user': u'hrt_qa'} 

      As seen in the response, the details displays the right data "Updated custom attribute" but action displays "ENTITY_UPDATE"

      Minor:

      Also it will be better if

      "Updated custom attribute" is updated as **

      "Updated custom attributes" **

      Please not the 's' at the end to keep it consistent 

      Attachments

        Activity

          People

            mandar_va Mandar Ambawane
            dharshmk Dharshana M Krishnamoorthy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: