Skip to content

Commit

Permalink
Merge pull request #331 from bcgov/feature/GRAD2-2673
Browse files Browse the repository at this point in the history
GRAD2-2673: task is complete.
  • Loading branch information
infstar authored Jun 26, 2024
2 parents 89e2fb5 + 294e181 commit aa7e5c0
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 289 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ public void handleEvent(@NonNull final Event event) {
final TraxGraduationUpdateDTO updateGrad = JsonUtil.getJsonObjectFromString(TraxGraduationUpdateDTO.class, event.getEventPayload());
this.eventServiceMap.get(UPD_GRAD.toString()).processEvent(updateGrad, event);
break;
case "UPD_STD_STATUS": // UPD_STD_STATUS will be deprecated
log.debug("Processing UPD_STD_STATUS event record :: {} ", event);
final TraxStudentStatusUpdateDTO updateStudentStatus = JsonUtil.getJsonObjectFromString(TraxStudentStatusUpdateDTO.class, event.getEventPayload());
this.eventServiceMap.get(UPD_STD_STATUS.toString()).processEvent(updateStudentStatus, event);
break;
case "XPROGRAM":
log.debug("Processing XPROGRAM event record :: {} ", event);
final TraxXProgramDTO xprogram = JsonUtil.getJsonObjectFromString(TraxXProgramDTO.class, event.getEventPayload());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public enum EventType {
NEWSTUDENT,
UPD_DEMOG,
UPD_GRAD,
UPD_STD_STATUS, // UPD_STD_STATUS will be deprecated
XPROGRAM,
ASSESSMENT,
COURSE,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,6 @@ public void saveGraduationStudent(String pen, StudentGradDTO gradStudent, EventT
requestDTO.getUpdateFields().add(field);
}
}
// UPD_STD_STATUS will be deprecated
// Student Status
if (eventType == EventType.UPD_STD_STATUS && StringUtils.isNotBlank(gradStudent.getNewStudentStatus())) {
OngoingUpdateFieldDTO field = OngoingUpdateFieldDTO.builder()
.type(FieldType.STRING).name(FieldName.STUDENT_STATUS).value(gradStudent.getNewStudentStatus())
.build();
requestDTO.getUpdateFields().add(field);
}

// Others ======================================================
// Batch Flags
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ public void testSaveGraduationStudent_whenStudentStatus_isChanged_then_returnAPI

boolean exceptionIsThrown = false;
try {
studentProcess.saveGraduationStudent(pen, requestStudent, EventType.UPD_STD_STATUS, "123");
studentProcess.saveGraduationStudent(pen, requestStudent, EventType.UPD_GRAD, "123");
} catch (Exception e) {
exceptionIsThrown = true;
}
Expand Down

This file was deleted.

0 comments on commit aa7e5c0

Please sign in to comment.