From f4dfd985915c2f4f331e0f3b830d8557b84da423 Mon Sep 17 00:00:00 2001
From: Darshan Nagesh <darshan.nagesh@tarento.com>
Date: Mon, 28 Mar 2022 12:55:44 +0530
Subject: [PATCH] Adding Visualization changes

---
 src/main/resources/schema/SMF_ChartApiConfig.json        | 2 +-
 src/main/resources/schema/SMF_MasterDashboardConfig.json | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/schema/SMF_ChartApiConfig.json b/src/main/resources/schema/SMF_ChartApiConfig.json
index 49f7532..1721d1a 100644
--- a/src/main/resources/schema/SMF_ChartApiConfig.json
+++ b/src/main/resources/schema/SMF_ChartApiConfig.json
@@ -95,7 +95,7 @@
         "dateRefField": "timestamp",
         "indexName": "fs-forms-data",
         "esInstance": "QUADNARY",
-        "aggrQuery": "{\"aggs\":{\"Inspection Completed\":{\"filter\":{\"bool\":{\"filter\":[{\"terms\":{\"status.keyword\":[\"INSCOMPLETED\"],\"boost\":1}}],\"adjust_pure_negative\":true,\"boost\":1}},\"aggs\":{\"Performing Lead Inspectors\":{\"terms\":{\"field\":\"inspection.leadInspector\"}}}}}}"
+        "aggrQuery": "{\"aggs\":{\"Inspection Completed\":{\"filter\":{\"bool\":{\"filter\":[{\"terms\":{\"inspection.assignedTo.status.keyword\":[\"INSCOMPLETED\"],\"boost\":1}}],\"adjust_pure_negative\":true,\"boost\":1}},\"aggs\":{\"Lead Inspector Status\":{\"terms\":{\"field\":\"inspection.assignedTo.leadInspector\",\"size\":10},\"aggs\":{\"Performing Lead Inspectors\":{\"terms\":{\"field\":\"inspection.assignedTo.firstName.keyword\",\"size\":5}}}}}}}}"
       }
     ],
     "chartType": "bar",
diff --git a/src/main/resources/schema/SMF_MasterDashboardConfig.json b/src/main/resources/schema/SMF_MasterDashboardConfig.json
index b7fe7fc..4136b6e 100644
--- a/src/main/resources/schema/SMF_MasterDashboardConfig.json
+++ b/src/main/resources/schema/SMF_MasterDashboardConfig.json
@@ -38,6 +38,7 @@
             {
               "id": 111,
               "name": "Application Status Count",
+              "description": "A view of all the applications and their status",
               "dimensions": {
                 "height": 250,
                 "width": 4
@@ -59,6 +60,7 @@
             {
               "id": 111,
               "name": "Application Submission Trend",
+              "description": "Over a period of time, how many applications have been submitted and the trend",
               "dimensions": {
                 "height": 250,
                 "width": 4
@@ -80,6 +82,7 @@
             {
               "id": 111,
               "name": "Performing Lead Inspectors",
+              "description": "High performing Lead Inspectors and their inspections count",
               "dimensions": {
                 "height": 250,
                 "width": 4
@@ -107,6 +110,7 @@
             {
               "id": 111,
               "name": "Pending Approved and Rejected",
+              "description": "A split of the status indicators to get a high level view of all the applications",
               "dimensions": {
                 "height": 250,
                 "width": 4
-- 
GitLab