Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Solution 2: Image URL can be synced updated to Elastic search document of DIAL code document the DIAL code avialable in ElasticSearch ‘dialcodes’ index when the DIAL code was generated. This can be achieved when the image is generated in the 'qrcode‘qrcode-image-generator' flink job. This needs

However, syncing of already generated DIAL codes images for existing adopters. QR codes’ image URLs has to be done for existing adopters. This requires enhncement of the Sync job.

Sync Jenkins job should accept multiple DIAL codes (comma separated) and upsert their DIAL Code document to Elastic Search by reading DIAL code details from ‘dialcode_store.dial_code’ table and imageURL details from 'dialcodes.dialcode_images’ table.

End DIAL Search Response:

Code Block
{
    "id": "api.dialcode.search",
    "ver": "1.0",
    "ts": "2023-02-10T07:27:58.021Z",
    "params": {
        "resmsgid": "71184750-a914-11ed-873f-c57d91aaac2a",
        "msgid": "7116e7c0-a914-11ed-bfb1-85731013bbc1",
        "status": "successful",
        "err": null,
        "errmsg": null
    },
    "responseCode": "OK",
    "result": {
        "dialcodes": [
            {
                "dialcode_index": 12996935,
                "identifier": "Q1I5I3",
                "channel": "012463759411712074",
                "batchcode": "do_31372904974902081878",
                "generated_on": "2023-02-09T02:27:58.947+0000",
                "objectType": "DialCode",
                "status": "Draft",
                "imageUrl": "https://sunbirddev.blob.core.windows.net/sunbird-content-dev/in.ekstep/0_Q1I5I3.png"
            }
        ],
        "count": 1
    }
}

LERN Batch Service code update:

...