From e875e359304642ef92f2fe23cb08d74b0c1d9fb7 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:39:45 +0530 Subject: [PATCH 1/2] Update pqm-service-indexer.yml --- .../egov-indexer/pqm-service-indexer.yml | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/sanitation/egov-indexer/pqm-service-indexer.yml b/sanitation/egov-indexer/pqm-service-indexer.yml index 142ba3fa6..2e7e13130 100644 --- a/sanitation/egov-indexer/pqm-service-indexer.yml +++ b/sanitation/egov-indexer/pqm-service-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: _doc + type: general jsonPath: $.tests.* id: $.id isBulk: true @@ -40,10 +40,10 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: _doc + type: general jsonPath: $.tests.* id: $.id - isBulk: false + isBulk: true timeStampField: $.auditDetails.createdTime customJsonMapping: indexMapping: {"Data":{"tests":{}}} @@ -68,4 +68,37 @@ ServiceMaps: valueJsonpath: $.tenantId uriResponseMapping: - inJsonPath: $.MdmsRes.tenant.tenants - outJsonPath: $.Data.tenantData \ No newline at end of file + outJsonPath: $.Data.tenantData + + - topic: pqm-service-legacyindex + configKey: LEGACYINDEX + indexes: + - name: pqm-service-index + type: general + jsonPath: $.tests.* + id: $.id + isBulk: true + timeStampField: $.auditDetails.createdTime + customJsonMapping: + indexMapping: {"Data":{"tests":{}}} + fieldMapping: + - inJsonPath: $ + outJsonPath: $.Data.tests + externalUriMapping: + - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search + queryParam: businessIds=$.testId,history=true,tenantId=$.tenantId + apiRequest: { "RequestInfo": { "apiId": "org.egov.pt","ver": "1.0","ts": 1502890899493,"action": "asd","did": "4354648646","key": "xyz","msgId": "654654","requesterId": "61","authToken": "d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo": { "id": 1,"uuid": "1fec8102-0e02-4d0a-b283-cd80d5dab067","type": "EMPLOYEE","tenantId": "pg.citya","roles": [ { "name": "Employee","code": "EMPLOYEE","tenantId": "pg.citya" } ] } } } + uriResponseMapping: + - inJsonPath: $.ProcessInstances + outJsonPath: $.Data.history + - path: http://egov-mdms-service.egov:8080/egov-mdms-service/v1/_search + moduleName: tenant + masterName: tenants + tenantId: pg + filter: "[?(@.code == $tenant)]" + filterMapping: + - variable: $tenant + valueJsonpath: $.tenantId + uriResponseMapping: + - inJsonPath: $.MdmsRes.tenant.tenants + outJsonPath: $.Data.tenantData From e055206f47fa29999cc4532335ac91437223e5f4 Mon Sep 17 00:00:00 2001 From: JithendarKumar-eGov <103918846+JithendarKumar-eGov@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:41:22 +0530 Subject: [PATCH 2/2] Update pqm-service-indexer.yml --- sanitation/egov-indexer/pqm-service-indexer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanitation/egov-indexer/pqm-service-indexer.yml b/sanitation/egov-indexer/pqm-service-indexer.yml index 2e7e13130..26b73a600 100644 --- a/sanitation/egov-indexer/pqm-service-indexer.yml +++ b/sanitation/egov-indexer/pqm-service-indexer.yml @@ -6,7 +6,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true @@ -40,7 +40,7 @@ ServiceMaps: configKey: INDEX indexes: - name: pqm-service - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true @@ -74,7 +74,7 @@ ServiceMaps: configKey: LEGACYINDEX indexes: - name: pqm-service-index - type: general + type: _doc jsonPath: $.tests.* id: $.id isBulk: true