From 3b1d1945c149c2bb4e81976d9185fe27f1dda5b2 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Thu, 5 Dec 2024 18:53:34 +0300 Subject: [PATCH 1/2] EPMRPP-96317 extend analyzer statistics --- .../jobs/statistics/DefectUpdateStatisticsJob.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java b/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java index 82e4ae8..840743e 100644 --- a/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java +++ b/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java @@ -109,6 +109,8 @@ public void execute() { int autoAnalyzed = 0; int userAnalyzed = 0; int sentToAnalyze = 0; + int skipped; + int passed; String version; boolean analyzerEnabled; Set status = new HashSet<>(); @@ -130,6 +132,8 @@ public void execute() { status.add("automatically"); sentToAnalyze += metadata.optInt("sentToAnalyze"); } + skipped = metadata.optInt("skipped"); + passed = metadata.optInt("passed"); userAnalyzed += metadata.optInt("userAnalyzed"); autoAnalyzed += metadata.optInt("analyzed"); @@ -145,7 +149,11 @@ public void execute() { params.put("version", version); params.put("type", analyzerEnabled ? "is_analyzer" : "not_analyzer"); if (analyzerEnabled) { - params.put("number", autoAnalyzed + "#" + userAnalyzed + "#" + sentToAnalyze); + params.put("number", autoAnalyzed + + "#" + userAnalyzed + + "#" + sentToAnalyze + + "#" + skipped + + "#" + passed); params.put("auto_analysis", String.join("#", autoAnalysisState)); params.put("status", String.join("#", status)); } From 46cbc6843b9f5814912682bfa07d97ccc8edc288 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Thu, 5 Dec 2024 19:17:12 +0300 Subject: [PATCH 2/2] EPMRPP-96317 extend analyzer statistics --- .../jobs/statistics/DefectUpdateStatisticsJob.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java b/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java index 840743e..38b92c6 100644 --- a/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java +++ b/src/main/java/com/epam/reportportal/jobs/statistics/DefectUpdateStatisticsJob.java @@ -149,11 +149,11 @@ public void execute() { params.put("version", version); params.put("type", analyzerEnabled ? "is_analyzer" : "not_analyzer"); if (analyzerEnabled) { - params.put("number", autoAnalyzed + - "#" + userAnalyzed + - "#" + sentToAnalyze + - "#" + skipped + - "#" + passed); + params.put("number", autoAnalyzed + + "#" + userAnalyzed + + "#" + sentToAnalyze + + "#" + skipped + + "#" + passed); params.put("auto_analysis", String.join("#", autoAnalysisState)); params.put("status", String.join("#", status)); }