Skip to content

Commit

Permalink
Merge branch 'UNIFIED-UAT' of https://github.com/egovernments/configs
Browse files Browse the repository at this point in the history
…into UNIFIED-UAT
  • Loading branch information
Ramkrishna-egov committed Dec 11, 2024
2 parents e067756 + 714b052 commit 4a2f64f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egov-dss-dashboards/dashboard-analytics/ChartApiConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17010,7 +17010,7 @@
"dateRefField": "Data.createdTime",
"requestQueryMap": "{\"projectTypeId\":\"Data.projectTypeId.keyword\",\"province\":\"Data.boundaryHierarchy.province.keyword\",\"district\":\"Data.boundaryHierarchy.district.keyword\"}",
"indexName": "user-sync-index-v1",
"aggrQuery": "{\"size\":0,\"aggs\":{\"AGGS\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.role.keyword\":[\"NATIONAL_SUPERVISOR\",\"PROVINCIAL_SUPERVISOR\",\"DISTRICT_SUPERVISOR\",\"TEAM_SUPERVISOR\"]}}]}},\"aggs\":{\"Supervisors Synced At Least Once\":{\"terms\":{\"field\":\"Data.boundaryHierarchy.district.keyword\",\"size\":500},\"aggs\":{\"Count\":{\"scripted_metric\":{\"params\":{\"fieldName\":\"Data.syncedUserId.keyword\"},\"init_script\":\"state.list = []\",\"map_script\":\"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\"combine_script\":\"return state.list;\",\"reduce_script\":\"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"}}}}}}}}"
"aggrQuery": "{\"size\":0,\"aggs\":{\"AGGS\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.role.keyword\":[\"NATIONAL_SUPERVISOR\",\"PROVINCIAL_SUPERVISOR\",\"DISTRICT_SUPERVISOR\",\"TEAM_SUPERVISOR\"]}},{\"exists\":{\"field\":\"Data.syncedUserId.keyword\"}}]}},\"aggs\":{\"Supervisors Synced At Least Once\":{\"terms\":{\"field\":\"Data.boundaryHierarchy.district.keyword\",\"size\":500},\"aggs\":{\"Count\":{\"scripted_metric\":{\"params\":{\"fieldName\":\"Data.syncedUserId.keyword\"},\"init_script\":\"state.list = []\",\"map_script\":\"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\"combine_script\":\"return state.list;\",\"reduce_script\":\"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"}}}}}}}}"
}
],
"chartType": "line",
Expand Down Expand Up @@ -20779,7 +20779,7 @@
"dateRefField": "Data.createdTime",
"requestQueryMap": "{\"projectTypeId\":\"Data.projectTypeId.keyword\",\"province\":\"Data.boundaryHierarchy.province.keyword\",\"district\":\"Data.boundaryHierarchy.district.keyword\",\"administrativeProvince\":\"Data.boundaryHierarchy.administrativeProvince.keyword\"}",
"indexName": "user-sync-index-v1",
"aggrQuery": "{\"size\":0,\"aggs\":{\"AGGS\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.role.keyword\":[\"NATIONAL_SUPERVISOR\",\"PROVINCIAL_SUPERVISOR\",\"DISTRICT_SUPERVISOR\",\"TEAM_SUPERVISOR\"]}}]}},\"aggs\":{\"Supervisors Synced At Least Once\":{\"terms\":{\"field\":\"Data.boundaryHierarchy.administrativeProvince.keyword\",\"size\":500},\"aggs\":{\"Count\":{\"scripted_metric\":{\"params\":{\"fieldName\":\"Data.syncedUserId.keyword\"},\"init_script\":\"state.list = []\",\"map_script\":\"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\"combine_script\":\"return state.list;\",\"reduce_script\":\"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"}}}}}}}}"
"aggrQuery": "{\"size\":0,\"aggs\":{\"AGGS\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.role.keyword\":[\"NATIONAL_SUPERVISOR\",\"PROVINCIAL_SUPERVISOR\",\"DISTRICT_SUPERVISOR\",\"TEAM_SUPERVISOR\"]}},{\"exists\":{\"field\":\"Data.syncedUserId.keyword\"}}]}},\"aggs\":{\"Supervisors Synced At Least Once\":{\"terms\":{\"field\":\"Data.boundaryHierarchy.administrativeProvince.keyword\",\"size\":500},\"aggs\":{\"Count\":{\"scripted_metric\":{\"params\":{\"fieldName\":\"Data.syncedUserId.keyword\"},\"init_script\":\"state.list = []\",\"map_script\":\"if(doc[params.fieldName] != null) \\nstate.list.add(doc[params.fieldName].value);\",\"combine_script\":\"return state.list;\",\"reduce_script\":\"Map uniqueValueMap = new HashMap(); \\n int count = 0;\\n for(shardList in states) {\\n if(shardList != null) { \\n for(key in shardList) {\\n if(!uniqueValueMap.containsKey(key)) {\\n count +=1;\\n uniqueValueMap.put(key, key);\\n }\\n }\\n }\\n } \\n return count;\"}}}}}}}}"
}
],
"chartType": "line",
Expand Down

0 comments on commit 4a2f64f

Please sign in to comment.