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-3164: task is complete. #364

Merged
merged 5 commits into from
Jan 15, 2025
Merged

GRAD2-3164: task is complete. #364

merged 5 commits into from
Jan 15, 2025

Conversation

infstar
Copy link
Contributor

@infstar infstar commented Jan 14, 2025

GRAD2-3164: task is complete.

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.
Comment on lines 28 to 30
public String getSchoolName() {
return schoolName != null ? schoolName.trim(): null;
}
Copy link

@mightycox mightycox Jan 15, 2025

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?

Copy link
Contributor Author

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())) {

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?

Copy link
Contributor Author

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();

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?

Copy link
Contributor Author

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.
@infstar infstar merged commit 0cc086d into grad-release Jan 15, 2025
6 checks passed
@infstar infstar deleted the feature/GRAD2-3164 branch January 15, 2025 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants