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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

            • Assignee:
              Unassigned
              Reporter:
              dharshmk Dharshana M Krishnamoorthy

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment