Skip to content

Commit

Permalink
Merge pull request #589 from bcgov/feature/GRAD2-2362
Browse files Browse the repository at this point in the history
GRAD2-2362 & GRAD2-2388: task is complete.
  • Loading branch information
infstar authored Nov 21, 2023
2 parents 62ae977 + e7d99bb commit 641a0f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ public GraduationStudentRecord saveGraduationStudentRecord(UUID studentID, Gradu
}

BeanUtils.copyProperties(sourceObject, gradEntity, CREATE_USER, CREATE_DATE);
gradEntity.setUpdateDate(null);
gradEntity.setUpdateUser(null);
gradEntity = graduationStatusRepository.saveAndFlush(gradEntity);
if (ongoingUpdate) {
historyService.createStudentHistory(sourceObject, UPDATE_ONGOING_HISTORY_ACTIVITY_CODE);
historyService.createStudentHistory(gradEntity, UPDATE_ONGOING_HISTORY_ACTIVITY_CODE);
}
if (constants.isStudentGuidPenXrefEnabled() && StringUtils.isNotBlank(graduationStatus.getPen())) {
saveStudentGuidPenXref(gradEntity.getStudentID(), graduationStatus.getPen());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public Pair<GraduationStudentRecord, GradStatusEvent> updateGraduationStatus(UUI

BeanUtils.copyProperties(sourceObject, gradEntity, CREATE_USER, CREATE_DATE, "studentGradData", "studentProjectedGradData", "recalculateGradStatus", "recalculateProjectedGrad");
gradEntity.setProgramCompletionDate(sourceObject.getProgramCompletionDate());
gradEntity.setUpdateUser("");
gradEntity.setUpdateUser(null);
gradEntity = graduationStatusRepository.saveAndFlush(gradEntity);
historyService.createStudentHistory(gradEntity, USER_EDIT);
final GradStatusEvent gradStatusEvent = createGradStatusEvent(gradEntity.getUpdateUser(), gradEntity,
Expand Down Expand Up @@ -864,6 +864,7 @@ public Pair<GraduationStudentRecord, GradStatusEvent> undoCompletionStudent(UUID
gradEntity.setHonoursStanding(null);
gradEntity.setGpa(null);
gradEntity.setSchoolAtGrad(null);
gradEntity.setUpdateUser(null);
gradEntity = graduationStatusRepository.save(gradEntity);
historyService.createStudentHistory(gradEntity, USER_UNDO_CMPL);
final GradStatusEvent gradStatusEvent = createGradStatusEvent(gradEntity.getUpdateUser(), gradEntity,
Expand Down

0 comments on commit 641a0f5

Please sign in to comment.