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

[Atlas: Audits] When business metadata attribute from different business metadata is added multiple audits are created

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: atlas-core
    • Labels:
      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
      }

       

        Attachments

        1. Screenshot 2021-03-20 at 4.35.39 PM.png
          273 kB
          Dharshana M Krishnamoorthy
        2. Screenshot 2021-03-20 at 4.52.56 PM.png
          129 kB
          Dharshana M Krishnamoorthy

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dharshmk Dharshana M Krishnamoorthy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: