Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1837

Modify data operation schema to accommodate additional information

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • None
    • NCMP

    Description

      To handle error responses during DataOperations the following fields are required in the kafka response message. 

      Fields :

      • resourceIdentifier
      • options

      These fields are to be included in the kafka response message by dmi-plugin if it exists and later NCMP should forward the same to client topic. 

      Note : Both fields are optional.

      Sample kafka response message :

       

      {    "data": {        "responses": [            {                "operationId""123",                "ids": [                    "12",                    "31"                ],                "resourceIdentifer""/",                "options""(fields=/module1:GNBDUFunction/module2:NRCell)",                "statusCode""103",                "statusMessage""dmi plugin service is not able to read resource data",                "result": {}            }        ]    }} 

       

      • Modify "schemas/async/data-operation-event-schema-1.0.0.json"
        • Add attributes (resourceIdentifier and options) as type String 

       

      A/C :

      1. Data operation schema should be able to hold newely created attributes into kafka message that is added by dmi plugin.
      2. If attribute data is not available it should not be added into response message.
      3. All responses should contain these attributes into response message.

       

      Open-Issue :

      1. Our understanding is that Dmi plugin should add resourceIdentifier and options values from DmiDataOperationRequest to populate kafka response message to NCMP. anirban.est  please get confirmation if this understanding is correct? [AB]: Understanding is correct. 

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sourabh_sourabh Sourabh Sourabh
              anirban.est Anirban Bhattacharjee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: