From a8bbb3a1ab0d94297427938c860debbaf9ee5e44 Mon Sep 17 00:00:00 2001 From: Maher Khalil Date: Wed, 25 Feb 2026 12:40:28 +0100 Subject: [PATCH] chore: removing temp insight as all insights are now stored in the store since certain operations require it --- .../semoss/web/services/local/NameServer.java | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/src/prerna/semoss/web/services/local/NameServer.java b/src/prerna/semoss/web/services/local/NameServer.java index 8c5e5529f..0caed46e0 100644 --- a/src/prerna/semoss/web/services/local/NameServer.java +++ b/src/prerna/semoss/web/services/local/NameServer.java @@ -405,14 +405,8 @@ public Response runPixelSync(@Context HttpServletRequest request) { // figure out the type of insight // first is temp - if (insightId == null || insightId.toString().isEmpty() || insightId.equals("undefined")) { - insightId = "TempInsight_" + GUID.v7().toUUID().toString(); - insight = new Insight(); - insight.setBaseURL(getServerURL(request)); - insight.setInsightId(insightId); - insight.setTemporaryInsight(true); - InsightStore.getInstance().put(insight); - } else if (insightId.equals("new")) { + if (insightId == null || insightId.toString().isEmpty() || insightId.equals("undefined") + || insightId.equals("new")) { // need to make a new insight here insight = new Insight(); insight.setBaseURL(getServerURL(request)); @@ -576,14 +570,8 @@ public Response runReactorMCP(@Context HttpServletRequest request) { String uuid = GUID.v7().toUUID().toString(); // figure out the type of insight // first is temp - if (insightId == null || insightId.toString().isEmpty() || insightId.equals("undefined")) { - insightId = "TempInsight_" + uuid; - insight = new Insight(); - insight.setBaseURL(getServerURL(request)); - insight.setInsightId(insightId); - insight.setTemporaryInsight(true); - InsightStore.getInstance().put(insight); - } else if (insightId.equals("new")) { + if (insightId == null || insightId.toString().isEmpty() || insightId.equals("undefined") + || insightId.equals("new")) { // need to make a new insight here insight = new Insight(); insight.setBaseURL(getServerURL(request)); @@ -918,14 +906,8 @@ public Response runPixelAsync(@Context HttpServletRequest request) { // figure out the type of insight // first is temp - if (insightId == null || insightId.toString().isEmpty() || insightId.equals("undefined")) { - insightId = "TempInsight_" + GUID.v7().toUUID().toString(); - insight = new Insight(); - insight.setBaseURL(getServerURL(request)); - insight.setInsightId(insightId); - insight.setTemporaryInsight(true); - InsightStore.getInstance().put(insight); - } else if (insightId.equals("new")) { + if (insightId == null || insightId.toString().isEmpty() || insightId.equals("undefined") + || insightId.equals("new")) { // need to make a new insight here insight = new Insight(); insight.setBaseURL(getServerURL(request));