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

Entity notification serialization results in incorrect format for date attributes in traits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8-incubating
    • 0.8.2
    • atlas-core
    • None

    Description

      Entity notification object has 3 fields: entity, operationType, traits. Date type attributes in 'traits' are serialized in a different format than the same attributes in entity.traits field, as shown below:

      notification.entity.traits:

      "traits": {
        "TEST_TAG":{
          "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Struct",
          "typeName":"TEST_TAG",
          "values": {
            "createTime":"2017-11-22T08:00:00.000Z"
          }
        }
      }
      

      notification.traits:

      "traits": [
        {
          "typeName":"TEST_TAG",
          "values": {
            "createTime":"Nov 22, 2017 12:00:00 AM"
          }
        }
      ]
      

      This needs to be fixed so that the notification consumers will be able read the same value in either fields.

      Attachments

        1. ATLAS-2275.patch
          2 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: