From 3c0f82b5e6a241e860389773857d77d998dbd982 Mon Sep 17 00:00:00 2001 From: Jinil Sung Date: Wed, 21 Feb 2024 09:30:45 -0800 Subject: [PATCH] GRAD2-2467: the duplicate optional nonGradReasons issue is resolved. GRAD2-2467: the duplicate optional nonGradReasons issue is resolved. --- .../gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java b/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java index 85fbeb89..bfbaecce 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java +++ b/api/src/main/java/ca/bc/gov/educ/api/ruleengine/rule/MainProgramCompleteRule.java @@ -79,7 +79,7 @@ private void processMainProgramCompleteRules(List nonGradReason nonGReasons = new ArrayList<>(); nonGReasons.addAll(requirementsNotMet); - obj.setNonGradReasonsOptionalProgram(nonGReasons); + obj.setNonGradReasonsOptionalProgram(nonGReasons.stream().distinct().toList()); } } }