Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRAD2-2465 - Delete a student and related data #324

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,30 @@ Delete All student related data ({STUDENT_API}/api/v1/student/conv/studentid/{st
STUDENT_RECORD_NOTE, STUDENT_CAREER_PROGRAMS, STUDENT_OPTIONAL_PROGRAM_HISTORY,
STUDENT_OPTIONAL_PROGRAM, GRADUATION_STUDENT_RECORD_HISTORY, GRADUATION_STUDENT_RECORD
*/
restUtils.removeAllStudentRelatedData(UUID.fromString(studentID), accessToken);
try {
restUtils.removeAllStudentRelatedData(UUID.fromString(studentID), accessToken);
} catch (Exception e) {
logger.info("Exception thrown when trying to delete student related data from grad student API.");
}

/*
Delete all Student certificates, transcripts and reports from API_GRAD_REPORT schema
Tables: STUDENT_CERTIFICATE, STUDENT_TRANSCRIPT and STUDENT_REPORT
*/
restUtils.removeAllStudentAchievements(UUID.fromString(studentID), accessToken);
try {
restUtils.removeAllStudentAchievements(UUID.fromString(studentID), accessToken);
} catch (Exception e) {
logger.info("Exception thrown when trying to delete student achievements.");
}

/*
Update TRAX_STUDENT_NO status to NULL
*/
restUtils.updateTraxStudentNo(new TraxStudentNo(pen, null, null), accessToken);
try {
restUtils.updateTraxStudentNo(new TraxStudentNo(pen, null, null), accessToken);
} catch (Exception e) {
logger.info("Exception thrown when trying to update TraxStudentNo.");
}
}
return pen;
}
Expand Down
Loading