From 2d3dafb8c5e9b78443fc70c114408ea7b3b3a6a0 Mon Sep 17 00:00:00 2001 From: Shreyas Damle Date: Thu, 22 Aug 2024 18:22:38 +0530 Subject: [PATCH] - Fixed retrieval app blank issue. - Fixed app name blank on Findings tab on Sage Loader Dashboard --- pebblo/app/service/local_ui/loader_apps.py | 2 ++ pebblo/app/service/prompt_service.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pebblo/app/service/local_ui/loader_apps.py b/pebblo/app/service/local_ui/loader_apps.py index f6ce5508..6abdd462 100644 --- a/pebblo/app/service/local_ui/loader_apps.py +++ b/pebblo/app/service/local_ui/loader_apps.py @@ -82,6 +82,7 @@ def get_findings_for_loader_app(self, app_data): if not findings_exists: logger.debug("finding not exist") findings = { + "appName": app_data["name"], "labelName": entity, "findings": entity_data["count"], "findingsType": "entities", @@ -118,6 +119,7 @@ def get_findings_for_loader_app(self, app_data): break if not findings_exists: findings = { + "appName": app_data["name"], "labelName": topic, "findings": topic_data["count"], "findingsType": "topics", diff --git a/pebblo/app/service/prompt_service.py b/pebblo/app/service/prompt_service.py index e9b6560c..68fc204d 100644 --- a/pebblo/app/service/prompt_service.py +++ b/pebblo/app/service/prompt_service.py @@ -37,7 +37,7 @@ def __init__(self): def _initialize_data(self, data): self.data = data - self.app_name = data.get("name") + self.application_name = data.get("name") def _fetch_classified_data(self, input_data, input_type=""): """