From e986ec9b74576b235ed7c1a36c65a17fa0ab7e43 Mon Sep 17 00:00:00 2001 From: arybakov Date: Thu, 15 Aug 2024 15:11:50 -0600 Subject: [PATCH 1/6] GRAD2-2283 Student Archive Process - Backend endpoints To COMPLETE --- .../api/gradstudent/service/GraduationStatusService.java | 9 ++++++--- .../gradstudent/service/GraduationStatusServiceTest.java | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java index 900cecbe..e8ed5be9 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java @@ -1234,10 +1234,13 @@ public GraduationStudentRecord saveStudentRecordDistributionRun(UUID studentID, } @Retry(name = "generalpostcall") - public void saveStudentHistoryRecordDistributionRun(UUID studentID, Long batchId, String activityCode) { + public void saveStudentHistoryRecordDistributionRun(UUID studentID, Long batchId, String activityCode, String studentStatus) { Optional gradStatusOptional = graduationStatusRepository.findById(studentID); if (gradStatusOptional.isPresent()) { GraduationStudentRecordEntity gradEntity = gradStatusOptional.get(); + if(StringUtils.isNotBlank(studentStatus)) { + gradEntity.setStudentStatus(studentStatus); + } gradEntity.setUpdateUser(null); gradEntity.setUpdateDate(null); gradEntity.setBatchId(batchId); @@ -1395,13 +1398,13 @@ public Integer archiveStudents(long batchId, List schoolOfRecords, Strin if(schoolOfRecords != null && !schoolOfRecords.isEmpty()) { List graduationStudentRecordGuids = graduationStatusRepository.findBySchoolOfRecordInAndStudentStatus(schoolOfRecords, recordStudentStatus); for(UUID graduationStudentRecordGuid: graduationStudentRecordGuids) { - saveStudentHistoryRecordDistributionRun(graduationStudentRecordGuid, batchId, "USERSTUDARC"); + saveStudentHistoryRecordDistributionRun(graduationStudentRecordGuid, batchId, "USERSTUDARC", "ARC"); } return graduationStatusRepository.archiveStudents(schoolOfRecords, recordStudentStatus, "ARC", batchId); } else { List graduationStudentRecordGuids = graduationStatusRepository.findByStudentStatus(recordStudentStatus); for(UUID graduationStudentRecordGuid: graduationStudentRecordGuids) { - saveStudentHistoryRecordDistributionRun(graduationStudentRecordGuid, batchId, "USERSTUDARC"); + saveStudentHistoryRecordDistributionRun(graduationStudentRecordGuid, batchId, "USERSTUDARC", "ARC"); } return graduationStatusRepository.archiveStudents(recordStudentStatus, "ARC", batchId); } diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java index d8d8f920..67aee784 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java @@ -2230,7 +2230,7 @@ public void testSaveStudentRecord_DistributionRun_2() { when(graduationStatusRepository.findById(studentID)).thenReturn(Optional.of(graduationStatusEntity)); - graduationStatusService.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE"); + graduationStatusService.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); assertThat(graduationStatusEntity).isNotNull(); } From 3a55172b30078de6c70849cfb87e2821c665c25d Mon Sep 17 00:00:00 2001 From: arybakov Date: Thu, 15 Aug 2024 15:18:08 -0600 Subject: [PATCH 2/6] GRAD2-2283 Student Archive Process - Backend endpoints To COMPLETE --- .../api/gradstudent/service/GraduationStatusServiceTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java index 67aee784..1dfc273a 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java @@ -2231,6 +2231,7 @@ public void testSaveStudentRecord_DistributionRun_2() { when(graduationStatusRepository.findById(studentID)).thenReturn(Optional.of(graduationStatusEntity)); graduationStatusService.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); + graduationStatusService.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); assertThat(graduationStatusEntity).isNotNull(); } From b0d0087ff450eb81364273321efb5fb481f3e079 Mon Sep 17 00:00:00 2001 From: arybakov Date: Thu, 15 Aug 2024 17:19:26 -0600 Subject: [PATCH 3/6] Tests fix --- .../service/GraduationStatusServiceTest.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java index 1dfc273a..7fc023b2 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java @@ -53,8 +53,7 @@ @ActiveProfiles("test") public class GraduationStatusServiceTest { - @Autowired - EducGradStudentApiConstants constants; + @Autowired EducGradStudentApiConstants constants; @Autowired GraduationStatusService graduationStatusService; @MockBean GradStudentService gradStudentService; @MockBean HistoryService historyService; @@ -2220,6 +2219,9 @@ public void testSaveStudentRecord_DistributionRun() { @Test public void testSaveStudentRecord_DistributionRun_2() { + + GraduationStatusService graduationStatusServiceMock = mock(GraduationStatusService.class); + UUID studentID = new UUID(1, 1); Long batchId = null; GraduationStudentRecordEntity graduationStatusEntity = new GraduationStudentRecordEntity(); @@ -2230,10 +2232,13 @@ public void testSaveStudentRecord_DistributionRun_2() { when(graduationStatusRepository.findById(studentID)).thenReturn(Optional.of(graduationStatusEntity)); - graduationStatusService.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); - graduationStatusService.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); + doNothing().when(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); + graduationStatusServiceMock.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); + Mockito.verify(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); - assertThat(graduationStatusEntity).isNotNull(); + doNothing().when(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); + graduationStatusServiceMock.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); + Mockito.verify(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); } @Test From dd67d84664d4242bd2acd54b65c7fa6eea521671 Mon Sep 17 00:00:00 2001 From: arybakov Date: Fri, 16 Aug 2024 13:01:52 -0600 Subject: [PATCH 4/6] Fix wrong archive counters --- .../entity/GraduationStudentRecordEntity.java | 8 +- .../GraduationStudentRecordHistoryEntity.java | 8 +- .../entity/GraduationStudentRecordView.java | 2 + .../service/GraduationStatusService.java | 31 ++-- .../gradstudent/service/HistoryService.java | 2 +- .../service/GradStudentServiceTest.java | 12 +- .../service/GraduationStatusServiceTest.java | 148 ++++++++++++++++-- 7 files changed, 180 insertions(+), 31 deletions(-) diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordEntity.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordEntity.java index 665bc4ac..c429104b 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordEntity.java @@ -1,9 +1,9 @@ package ca.bc.gov.educ.api.gradstudent.model.entity; +import jakarta.persistence.*; import lombok.Data; import lombok.EqualsAndHashCode; -import jakarta.persistence.*; import java.util.Date; import java.util.UUID; @@ -78,6 +78,12 @@ public GraduationStudentRecordEntity() { @Column(name = "STUDENT_PROJECTED_GRAD_DATA", columnDefinition="CLOB") private String studentProjectedGradData; + @Column(name = "SCHOOL_OF_RECORD_ID", nullable = true) + private UUID schoolOfRecordId; + + @Column(name = "SCHOOL_AT_GRADUATION_ID", nullable = true) + private UUID schoolAtGraduationId; + @Transient private String legalFirstName; diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordHistoryEntity.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordHistoryEntity.java index 6556a4c3..a7b4c323 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordHistoryEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordHistoryEntity.java @@ -1,10 +1,10 @@ package ca.bc.gov.educ.api.gradstudent.model.entity; +import jakarta.persistence.*; import lombok.Data; import lombok.EqualsAndHashCode; import org.hibernate.annotations.GenericGenerator; -import jakarta.persistence.*; import java.util.Date; import java.util.UUID; @@ -75,6 +75,12 @@ public class GraduationStudentRecordHistoryEntity extends BaseEntity { @Column(name = "ADULT_START_DATE", nullable = true) private Date adultStartDate; + @Column(name = "SCHOOL_OF_RECORD_ID", nullable = true) + private UUID schoolOfRecordId; + + @Column(name = "SCHOOL_AT_GRADUATION_ID", nullable = true) + private UUID schoolAtGraduationId; + //@Lob //@Column(name = "STUDENT_PROJECTED_GRAD_DATA", columnDefinition="CLOB") @Transient diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordView.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordView.java index 8a7c834d..6e19ec77 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordView.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/model/entity/GraduationStudentRecordView.java @@ -22,6 +22,8 @@ public interface GraduationStudentRecordView { public String getStudentCitizenship(); public Date getAdultStartDate(); public String getStudentProjectedGradData() ; + public UUID getSchoolOfRecordId(); + public UUID getSchoolAtGraduationId(); public LocalDateTime getCreateDate(); public LocalDateTime getUpdateDate(); } \ No newline at end of file diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java index e8ed5be9..ccb5f57b 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java @@ -1234,17 +1234,16 @@ public GraduationStudentRecord saveStudentRecordDistributionRun(UUID studentID, } @Retry(name = "generalpostcall") - public void saveStudentHistoryRecordDistributionRun(UUID studentID, Long batchId, String activityCode, String studentStatus) { - Optional gradStatusOptional = graduationStatusRepository.findById(studentID); - if (gradStatusOptional.isPresent()) { - GraduationStudentRecordEntity gradEntity = gradStatusOptional.get(); - if(StringUtils.isNotBlank(studentStatus)) { - gradEntity.setStudentStatus(studentStatus); - } - gradEntity.setUpdateUser(null); - gradEntity.setUpdateDate(null); - gradEntity.setBatchId(batchId); - historyService.createStudentHistory(gradEntity, activityCode); + public void saveStudentHistoryRecordArchiveStudentsRun(UUID studentID, Long batchId, String activityCode) { + List graduationStudentRecordViews = graduationStatusRepository.findByStudentIDIn(List.of(studentID)); + for(GraduationStudentRecordView st: graduationStudentRecordViews) { + GraduationStudentRecordEntity toBeSaved = new GraduationStudentRecordEntity(); + BeanUtils.copyProperties(st, toBeSaved); + toBeSaved.setStudentStatus("ARC"); + toBeSaved.setUpdateUser(null); + toBeSaved.setUpdateDate(null); + toBeSaved.setBatchId(batchId); + historyService.createStudentHistory(toBeSaved, activityCode); } } @@ -1395,19 +1394,21 @@ public Long countBySchoolOfRecordsAndStudentStatus(List schoolOfRecords, @Transactional public Integer archiveStudents(long batchId, List schoolOfRecords, String studentStatus) { String recordStudentStatus = StringUtils.defaultString(studentStatus, "CUR"); + Integer archivedStudentsCount = 0; if(schoolOfRecords != null && !schoolOfRecords.isEmpty()) { List graduationStudentRecordGuids = graduationStatusRepository.findBySchoolOfRecordInAndStudentStatus(schoolOfRecords, recordStudentStatus); for(UUID graduationStudentRecordGuid: graduationStudentRecordGuids) { - saveStudentHistoryRecordDistributionRun(graduationStudentRecordGuid, batchId, "USERSTUDARC", "ARC"); + saveStudentHistoryRecordArchiveStudentsRun(graduationStudentRecordGuid, batchId, "USERSTUDARC"); } - return graduationStatusRepository.archiveStudents(schoolOfRecords, recordStudentStatus, "ARC", batchId); + archivedStudentsCount = graduationStatusRepository.archiveStudents(schoolOfRecords, recordStudentStatus, "ARC", batchId); } else { List graduationStudentRecordGuids = graduationStatusRepository.findByStudentStatus(recordStudentStatus); for(UUID graduationStudentRecordGuid: graduationStudentRecordGuids) { - saveStudentHistoryRecordDistributionRun(graduationStudentRecordGuid, batchId, "USERSTUDARC", "ARC"); + saveStudentHistoryRecordArchiveStudentsRun(graduationStudentRecordGuid, batchId, "USERSTUDARC"); } - return graduationStatusRepository.archiveStudents(recordStudentStatus, "ARC", batchId); + archivedStudentsCount = graduationStatusRepository.archiveStudents(recordStudentStatus, "ARC", batchId); } + return archivedStudentsCount; } public void updateStudentFlagReadyForBatchJobByStudentIDs(String batchJobType, List studentIDs) { diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/HistoryService.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/HistoryService.java index b55205e0..7c8db130 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/HistoryService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/HistoryService.java @@ -65,7 +65,7 @@ public void createStudentHistory(GraduationStudentRecordEntity curStudentEntity, graduationStudentRecordHistoryEntity.setCreateDate(curStudentEntity.getCreateDate()); graduationStudentRecordHistoryEntity.setActivityCode(historyActivityCode); graduationStudentRecordHistoryEntity.setStudentGradData("{ EMPTY CLOB }"); - graduationStudentRecordHistoryRepository.save(graduationStudentRecordHistoryEntity); + graduationStudentRecordHistoryRepository.saveAndFlush(graduationStudentRecordHistoryEntity); } } diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentServiceTest.java index 50f27a05..fc78eb7e 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GradStudentServiceTest.java @@ -422,6 +422,16 @@ public String getStudentProjectedGradData() { return null; } + @Override + public UUID getSchoolOfRecordId() { + return null; + } + + @Override + public UUID getSchoolAtGraduationId() { + return null; + } + @Override public LocalDateTime getCreateDate() { return null; @@ -432,10 +442,10 @@ public LocalDateTime getUpdateDate() { return null; } }; + List studentSubList = new ArrayList<>(); studentSubList.add(graduationStatusView.getStudentID()); - when(this.graduationStatusRepository.findByStudentID(studentID)).thenReturn(graduationStatusEntity); when(this.graduationStatusTransformer.transformToDTOWithModifiedProgramCompletionDate(graduationStatusEntity)).thenReturn(graduationStatus); when(this.graduationStatusRepository.findByStudentIDIn(studentSubList)).thenReturn(List.of(graduationStatusView)); diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java index 7fc023b2..40622704 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java @@ -2224,21 +2224,115 @@ public void testSaveStudentRecord_DistributionRun_2() { UUID studentID = new UUID(1, 1); Long batchId = null; - GraduationStudentRecordEntity graduationStatusEntity = new GraduationStudentRecordEntity(); - graduationStatusEntity.setStudentID(studentID); - graduationStatusEntity.setPen("12321321"); - graduationStatusEntity.setStudentStatus("A"); - graduationStatusEntity.setSchoolOfRecord("12345678"); + GraduationStudentRecordView graduationStatusEntity = new GraduationStudentRecordView() { - when(graduationStatusRepository.findById(studentID)).thenReturn(Optional.of(graduationStatusEntity)); + @Override + public String getProgram() { + return null; + } + + @Override + public java.util.Date getProgramCompletionDate() { + return null; + } + + @Override + public String getGpa() { + return null; + } + + @Override + public String getHonoursStanding() { + return null; + } + + @Override + public String getRecalculateGradStatus() { + return null; + } + + @Override + public String getSchoolOfRecord() { + return "12345678"; + } + + @Override + public String getStudentGrade() { + return null; + } + + @Override + public String getStudentStatus() { + return "A"; + } + + @Override + public UUID getStudentID() { + return studentID; + } + + @Override + public String getSchoolAtGrad() { + return null; + } + + @Override + public String getRecalculateProjectedGrad() { + return null; + } + + @Override + public Long getBatchId() { + return null; + } - doNothing().when(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); - graduationStatusServiceMock.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); - Mockito.verify(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", "ARC"); + @Override + public String getConsumerEducationRequirementMet() { + return null; + } + + @Override + public String getStudentCitizenship() { + return null; + } + + @Override + public java.util.Date getAdultStartDate() { + return null; + } + + @Override + public String getStudentProjectedGradData() { + return null; + } + + @Override + public UUID getSchoolOfRecordId() { + return null; + } + + @Override + public UUID getSchoolAtGraduationId() { + return null; + } + + @Override + public LocalDateTime getCreateDate() { + return null; + } + + @Override + public LocalDateTime getUpdateDate() { + return null; + } + }; + + when(graduationStatusRepository.findByStudentIDIn(List.of(studentID))).thenReturn(List.of(graduationStatusEntity)); + + doNothing().when(graduationStatusServiceMock).saveStudentHistoryRecordArchiveStudentsRun(studentID, batchId, "ACTIVITYCODE"); + graduationStatusServiceMock.saveStudentHistoryRecordArchiveStudentsRun(studentID, batchId, "ACTIVITYCODE"); + Mockito.verify(graduationStatusServiceMock).saveStudentHistoryRecordArchiveStudentsRun(studentID, batchId, "ACTIVITYCODE"); - doNothing().when(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); - graduationStatusServiceMock.saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); - Mockito.verify(graduationStatusServiceMock).saveStudentHistoryRecordDistributionRun(studentID, batchId, "ACTIVITYCODE", null); } @Test @@ -2336,6 +2430,16 @@ public String getStudentProjectedGradData() { return null; } + @Override + public UUID getSchoolOfRecordId() { + return null; + } + + @Override + public UUID getSchoolAtGraduationId() { + return null; + } + @Override public LocalDateTime getCreateDate() { return null; @@ -2810,6 +2914,16 @@ public String getStudentProjectedGradData() { return null; } + @Override + public UUID getSchoolOfRecordId() { + return null; + } + + @Override + public UUID getSchoolAtGraduationId() { + return null; + } + @Override public LocalDateTime getCreateDate() { return null; @@ -3058,6 +3172,16 @@ public String getStudentProjectedGradData() { return jsonTransformer.marshall(projectedRunClob); } + @Override + public UUID getSchoolOfRecordId() { + return null; + } + + @Override + public UUID getSchoolAtGraduationId() { + return null; + } + @Override public LocalDateTime getCreateDate() { return null; From d8c0b083ee59ea7eb4f4972b24da8fbf2673990d Mon Sep 17 00:00:00 2001 From: arybakov Date: Fri, 16 Aug 2024 13:12:53 -0600 Subject: [PATCH 5/6] Fix wrong archive counters --- .../educ/api/gradstudent/service/GraduationStatusService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java index ccb5f57b..10a8b237 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusService.java @@ -1319,6 +1319,7 @@ private List processStudentDataList(Page studentGuids) { return result; } + @Generated private void processUUIDDataTasksAsync(List> tasks, List result) { if(tasks.isEmpty()) return; List> executionResult; From 8ea8e0f23f3aaec02c6e6bf471c2741dbf09b7f5 Mon Sep 17 00:00:00 2001 From: arybakov Date: Fri, 16 Aug 2024 13:25:55 -0600 Subject: [PATCH 6/6] Fix wrong archive counters --- .../api/gradstudent/service/GraduationStatusServiceTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java index 40622704..e45fb6b0 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/service/GraduationStatusServiceTest.java @@ -2333,6 +2333,8 @@ public LocalDateTime getUpdateDate() { graduationStatusServiceMock.saveStudentHistoryRecordArchiveStudentsRun(studentID, batchId, "ACTIVITYCODE"); Mockito.verify(graduationStatusServiceMock).saveStudentHistoryRecordArchiveStudentsRun(studentID, batchId, "ACTIVITYCODE"); + graduationStatusService.saveStudentHistoryRecordArchiveStudentsRun(studentID, batchId, "ACTIVITYCODE"); + } @Test