Skip to content

Commit

Permalink
GRAD2-2951: replaced minCode with schoolId for Schoolclob.
Browse files Browse the repository at this point in the history
GRAD2-2951: replaced minCode with schoolId for Schoolclob.
  • Loading branch information
infstar committed Nov 21, 2024
1 parent 05216f5 commit 413068e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class School implements Serializable {

private static final long serialVersionUID = 2L;

private String schoolId;
private String mincode;
private String name;
private String typeIndicator;
Expand All @@ -33,6 +34,14 @@ public School(String mincode) {
this.mincode = mincode;
}

public String getSchoolId() {
return schoolId;
}

public void setSchoolId(String value) {
this.schoolId = value;
}

public String getMincode() {
return mincode;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class SchoolClob {
private String postal;
private String openFlag;
private String schoolCategoryCode;
private String schoolCategoryCodeInstitute;
private String schoolCategoryLegacyCode;

public String getSchoolName() {
return schoolName != null ? schoolName.trim(): null;
}
Expand Down Expand Up @@ -53,7 +53,7 @@ public String getOpenFlag() {

@Override
public String toString() {
return "School [minCode=" + minCode + ", schoolId=" + schoolId + ", schoolCategoryCode=" + schoolCategoryCode + ", schoolCategoryCodeInstitute=" + schoolCategoryCodeInstitute
return "School [minCode=" + minCode + ", schoolId=" + schoolId + ", schoolCategoryCode=" + schoolCategoryCode + ", schoolCategoryLegacyCode=" + schoolCategoryLegacyCode
+ ", schoolName=" + schoolName + ", districtName=" + districtName + ", transcriptEligibility=" + transcriptEligibility + ", certificateEligibility=" + certificateEligibility
+ ", address1=" + address1 + ", address2=" + address2 + ", city=" + city + ", provCode=" + provCode + ", countryCode=" + countryCode + ", postal=" + postal + ", openFlag=" + openFlag
+ "]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ public List<SchoolClob> getSchoolByDistrictCode(String district) {
}
}

public SchoolClob getSchoolClob(String minCode) {
return restService.get(String.format(constants.getSchoolByMincode(), minCode), SchoolClob.class, getAccessToken());
public SchoolClob getSchoolClob(String schoolId) {
return restService.get(String.format(constants.getSchoolClobBySchoolId(), schoolId), SchoolClob.class, getAccessToken());
}

public List<UUID> getDeceasedStudentIDs(List<UUID> studentIDs) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ public class EducGradBatchGraduationApiConstants {
@Value("${endpoint.grad-graduation-api.student-certificate-regeneration.url}")
private String studentCertificateRegeneration;

@Value("${endpoint.grad-trax-api.school-by-min-code.url}")
private String schoolByMincode;
@Value("${endpoint.grad-trax-api.school-clob-by-school-id.url}")
private String schoolClobBySchoolId;

@Value("${endpoint.grad-trax-api.district-by-school-category.url}")
private String traxDistrictBySchoolCategory;
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ endpoint:
grad-trax-api:
get-psi-student-list:
url: ${GRAD_TRAX_API}api/v1/trax/psi/student?transmissionMode=%s&psiCode=%s&psiYear=%s
school-by-min-code:
school-clob-by-school-id:
url: ${GRAD_TRAX_API}api/v2/trax/school-clob/%s
school-by-district-code:
url: ${GRAD_TRAX_API}api/v2/trax/schools-by-district/%s
Expand Down
2 changes: 1 addition & 1 deletion api/src/test/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ endpoint:
grad-trax-api:
get-psi-student-list:
url: https://educ-grad-trax-api-77c02f-dev.apps.silver.devops.gov.bc.ca/api/v1/trax/psi/student?transmissionMode=%s&psiCode=%s&psiYear=%s
school-by-min-code:
school-clob-by-school-id:
url: https://educ-grad-trax-api-77c02f-dev.apps.silver.devops.gov.bc.ca/api/v2/trax/school-clob/%s
school-by-district-code:
url: https://educ-grad-trax-api-77c02f-dev.apps.silver.devops.gov.bc.ca/api/v2/trax/schools-by-district/%s
Expand Down

0 comments on commit 413068e

Please sign in to comment.