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

[Atlas: Audits] When one of the attributes of a classification is updated, all the attributes are getting displayed in the latest audit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • atlas-core
    • 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}', 

      Attachments

        Activity

          People

            Unassigned Unassigned
            dharshmk Dharshana M Krishnamoorthy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: