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-2642: task is completed. #728

Merged
merged 8 commits into from
Jan 9, 2025
Merged

GRAD2-2642: task is completed. #728

merged 8 commits into from
Jan 9, 2025

Conversation

infstar
Copy link
Contributor

@infstar infstar commented Jan 7, 2025

GRAD2-2642: task is completed.

GRAD2-2642: task is completed.
GRAD2-2642: more unit tests for coverage, and cleanup some comments.
GRAD2-2642: removed the unused codes.
…w codes.

GRAD2-2642: fixed the broken unit test to get more coverage on the new codes.
GRAD2-2642: more coverages on the new codes.
GRAD2-2642: more coverages on the new codes.
More coverages.
logger.debug("getSchoolReportDataForYearEndNonGrad :");
return response.GET(gradStudentReportService.getGradDistrictsForNonGradYearEndReport());
return response.GET(gradStudentReportService.getGradDistrictsForNonGradYearEndReport(accessToken.replace(BEARER, "")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use access token? We should try to 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.

This can be handled in a new ticket.

@@ -12,6 +12,7 @@ public class GradStudentRecordPayload {
private String program;
private String programCompletionDate;
private String schoolOfRecord;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of schoolOfRecord?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is DTO EDX is using. We need a separate ticket to handle the changes in the shared interface between 2 systems.

@@ -15,11 +15,13 @@ public class BatchGraduationStudentRecord {
private String program;
private String programCompletionDate;
private String schoolOfRecord;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of schoolOfRecord?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -19,6 +19,8 @@ public class GraduationStudentRecordDistribution extends BaseModel{
private String legalLastName;
private String schoolOfRecord;
private String schoolAtGrad;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of schoolOfRecord and schoolAtGrad?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -18,4 +19,7 @@ public class ReportGradSchoolYearEndEntity implements Serializable {
@Column(name = "MINCODE")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get rid of mincode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

return getWebClient().get()
.uri(String.format(getConstants().getSchoolsByDistrictIdUrl(), districtId))
.headers(h -> {
h.setBearerAuth(accessToken);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't be using access token anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be handled in a new ticket.

}

public List<ReportGradStudentData> getGradStudentDataForNonGradYearEndReportByDistrict(UUID districtId) {
PageRequest nextPage = PageRequest.of(0, PAGE_SIZE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are more than PAGE_SIZE they will never be included?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is retrieving students for one district, and that will be huge volume of data.

COUNT(GRADUATION_STUDENT_RECORD_ID) STUD_NUM,
-- Revert code back to school of record GRAD2-2758
--SUBSTR(DECODE(A1.SCHOOL_AT_GRADUATION, NULL, A1.SCHOOL_OF_RECORD, A1.SCHOOL_AT_GRADUATION), 0, 3) MINCODE
A1.SCHOOL_OF_RECORD MINCODE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get rid of mincode?
Do we need to update REPORT_GRAD_DISTRICT_YE_VW as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mincode is removed from REPORT_GRAD_SCHOOL_YE_VW.
REPORT_GRAD_DISTRICT_YE_VW has been dropped.

… DTOs and Entities.

GRAD2-2642: schoolOfRecord & schoolAtGraduation fields are removed in DTOs and Entities.
Copy link

sonarqubecloud bot commented Jan 8, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
78.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@infstar infstar merged commit df2d84a into grad-release Jan 9, 2025
5 of 6 checks passed
@infstar infstar deleted the feature/GRAD2-2642 branch January 9, 2025 00:24
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