From 32d3010d9dd5e80a0da14489f1795a6d918e1bc3 Mon Sep 17 00:00:00 2001 From: Ark2307 Date: Mon, 6 Jan 2025 16:21:00 +0530 Subject: [PATCH] Adding changes in db action --- .../src/main/java/com/akto/action/DbAction.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java b/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java index 8c199694b2..159f123f0c 100644 --- a/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java +++ b/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java @@ -160,6 +160,8 @@ public void setTestSourceConfig(TestSourceConfig testSourceConfig) { String state; Bson filter; + String operator; + public BasicDBList getIssuesIds() { return issuesIds; } @@ -1814,11 +1816,7 @@ public String updateAccessMatrixUrlToRoles() { public String updateIssueCountInSummary() { try { - if (summaryId != null) { - ObjectId summaryObjectId = new ObjectId(summaryId); - totalCountIssues = TestExecutor.calcTotalCountIssues(summaryObjectId); - } - trrs = DbLayer.updateIssueCountInSummary(summaryId, totalCountIssues); + trrs = DbLayer.updateIssueCountInSummary(summaryId, totalCountIssues, operator); trrs.setTestingRunHexId(trrs.getTestingRunId().toHexString()); } catch (Exception e) { loggerMaker.errorAndAddToDb(e, "Error in updateIssueCountInSummary " + e.toString()); @@ -3339,5 +3337,13 @@ public void setFilter(Bson filter) { public TestScript getTestScript() { return testScript; } + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } }