-
Notifications
You must be signed in to change notification settings - Fork 0
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-3164: task is complete. #364
Conversation
GRAD2-3164: task is complete.
Fixed the broken junit test is fixed for PF validation.
More coverage & clean up comments.
Fixed the broken flows in Junit test.
public String getSchoolName() { | ||
return schoolName != null ? schoolName.trim(): null; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can get rid of these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed all unnecessary methods.
&& ( StringUtils.isNotBlank(student.getSchoolOfRecord()) | ||
&& student.getSchoolOfRecord().startsWith("093") ) | ||
) { | ||
&& isSchoolForProgramFrancophone(student.getSchoolOfRecordId())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the null check still?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not supposed to have null schoolOfRecordId in GraduationStudentRecord. If so, that is critical, and intentionally good to have NPE instead of moving forward with the wrong grad program. Anyway, I will add the null check here, and monitor in PROD that schoolOfRecordId is null to have the wrong grad program in student load & ongoing updates.
if (res != null) { | ||
accessToken = res.getAccess_token(); | ||
} | ||
String accessToken = restUtils.fetchAccessToken(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we aren't changing now, do we have a ticket for removing access token from header for this api?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new client is required in keycloak to utilize client credential auth. I think a separate ticket to handle this is better.
Updated to improve after code review.
Quality Gate passedIssues Measures |
GRAD2-3164: task is complete.