From 9d8f21eafa6590ebd44088fb224b6f8dbb1b50c9 Mon Sep 17 00:00:00 2001 From: Avneesh Hota Date: Thu, 18 Apr 2024 19:59:26 +0530 Subject: [PATCH] disable dependency graph --- .../main/java/com/akto/parsers/HttpCallParser.java | 10 +++++----- .../src/main/java/com/akto/utils/Utils.java | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/api-runtime/src/main/java/com/akto/parsers/HttpCallParser.java b/apps/api-runtime/src/main/java/com/akto/parsers/HttpCallParser.java index b6c59645ff..2efec1c065 100644 --- a/apps/api-runtime/src/main/java/com/akto/parsers/HttpCallParser.java +++ b/apps/api-runtime/src/main/java/com/akto/parsers/HttpCallParser.java @@ -204,17 +204,17 @@ public void syncFunction(List responseParams, boolean syncIm apiCatalogSync.computeDelta(aggregator, false, apiCollectionId); } - for (HttpResponseParams responseParam: filteredResponseParams) { - dependencyAnalyser.analyse(responseParam.getOrig(), responseParam.requestParams.getApiCollectionId()); - } + // for (HttpResponseParams responseParam: filteredResponseParams) { + // dependencyAnalyser.analyse(responseParam.getOrig(), responseParam.requestParams.getApiCollectionId()); + // } this.sync_count += filteredResponseParams.size(); int syncThresh = numberOfSyncs < 10 ? 10000 : sync_threshold_count; if (syncImmediately || this.sync_count >= syncThresh || (Context.now() - this.last_synced) > this.sync_threshold_time || isHarOrPcap) { numberOfSyncs++; apiCatalogSync.syncWithDB(syncImmediately, fetchAllSTI); - dependencyAnalyser.dbState = apiCatalogSync.dbState; - dependencyAnalyser.syncWithDb(); + // dependencyAnalyser.dbState = apiCatalogSync.dbState; + // dependencyAnalyser.syncWithDb(); syncTrafficMetricsWithDB(); this.last_synced = Context.now(); this.sync_count = 0; diff --git a/apps/dashboard/src/main/java/com/akto/utils/Utils.java b/apps/dashboard/src/main/java/com/akto/utils/Utils.java index 568e1ffca8..f56f9cbafa 100644 --- a/apps/dashboard/src/main/java/com/akto/utils/Utils.java +++ b/apps/dashboard/src/main/java/com/akto/utils/Utils.java @@ -490,13 +490,13 @@ public static void pushDataToKafka(int apiCollectionId, String topic, List