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

Grad release 1.11.0 #601

Merged
merged 27 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2ca6949
GRAD2-2362 & GRAD2-2388: task is complete.
infstar Nov 21, 2023
e7d99bb
GRAD2-2388: added a missing file.
infstar Nov 21, 2023
641a0f5
Merge pull request #589 from bcgov/feature/GRAD2-2362
infstar Nov 21, 2023
4f5b073
Gard2-2406 Adding missing index X_OPTPROG_GRADSTUDID to GRAD PROD
githubmamatha Nov 28, 2023
1780878
GRAD2-2389 & 2390 & 2412: task is complete.
infstar Nov 29, 2023
75f6731
GRAD2-2389: Ongoing updates at field level is supported.
infstar Nov 29, 2023
c2ce3b4
Clean up the message.
infstar Nov 29, 2023
1422c68
More coverage on the new codes.
infstar Nov 30, 2023
170090f
Improved asserts in ongoing updates unit tests.
infstar Nov 30, 2023
209fe29
Merge pull request #590 from bcgov/feature/GRAD2-2389
infstar Nov 30, 2023
4a44de6
Gard2-2341 Part-1
githubmamatha Dec 4, 2023
f3aa704
Merge pull request #592 from bcgov/feature/Grad2-2341CreateHistoryAct…
arybakov-cgi Dec 5, 2023
1f6f3b7
Merge pull request #594 from bcgov/main
kamal-mohammed Dec 5, 2023
7efb03b
Merge pull request #595 from bcgov/grad-release
kamal-mohammed Dec 5, 2023
07ea0e1
Merge pull request #596 from bcgov/feature/Grad2-2406AddMissingIndexT…
kamal-mohammed Dec 5, 2023
15bd420
Gard2-2341 Part-2
githubmamatha Dec 6, 2023
02d1aa8
Gard2-2341 Part-3
githubmamatha Dec 6, 2023
c0cb486
Gard2-2341 Part-4
githubmamatha Dec 6, 2023
fbb0630
Merge pull request #597 from bcgov/feature/Grad2-2341RecordAuditHisto…
arybakov-cgi Dec 6, 2023
b1e0b93
Gard2-2341 Part-5
githubmamatha Dec 6, 2023
dd75e14
Merge pull request #598 from bcgov/feature/Grad2-2341RecordAuditHisto…
arybakov-cgi Dec 6, 2023
9c2d862
Gard2-2341 Part-6
githubmamatha Dec 6, 2023
b767d7c
Merge pull request #599 from bcgov/feature/Grad2-2341RecordAuditHisto…
arybakov-cgi Dec 6, 2023
23fb43f
Gard2-2341 Part-7
githubmamatha Dec 7, 2023
9aab599
Gard2-2341 Part-7a
githubmamatha Dec 7, 2023
b50019b
Merge pull request #600 from bcgov/feature/Grad2-2341RecordAuditHisto…
infstar Dec 7, 2023
2288272
Update pom.xml
kamal-mohammed Dec 7, 2023
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
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>ca.bc.gov.educ</groupId>
<artifactId>educ-grad-student-api</artifactId>
<version>1.8.51</version>
<version>1.8.52</version>
<name>educ-grad-student-api</name>
<description>Student Demographics API for GRAD team</description>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package ca.bc.gov.educ.api.gradstudent.constant;

public enum FieldName {
SCHOOL_OF_RECORD,
GRAD_PROGRAM,
ADULT_START_DATE,
SLP_DATE,
STUDENT_GRADE,
CITIZENSHIP,
STUDENT_STATUS,

RECALC_GRAD_ALG,
RECALC_TVR

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package ca.bc.gov.educ.api.gradstudent.constant;

public enum FieldType {
STRING,
DATE
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ca.bc.gov.educ.api.gradstudent.constant;

public enum TraxEventType {
/* ===========================================================
Incremental updates from Trax to Grad
=============================================================*/
/**
* Trax update type
*/
NEWSTUDENT,
UPD_DEMOG,
UPD_GRAD,
UPD_STD_STATUS,
XPROGRAM,
ASSESSMENT,
COURSE,
FI10ADD
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,20 @@ public class DataConversionController {
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")})
public ResponseEntity<GraduationStudentRecord> saveStudentGradStatus(@PathVariable String studentID,
@RequestParam(value = "ongoingUpdate", required = false, defaultValue = "false") boolean ongoingUpdate,
@RequestBody GraduationStudentRecord graduationStatus,
@RequestHeader(name="Authorization") String accessToken) {
@RequestBody GraduationStudentRecord graduationStatus) {
logger.debug("Save Graduation Student Record for Student ID");
var result = dataConversionService.saveGraduationStudentRecord(UUID.fromString(studentID),graduationStatus, ongoingUpdate, accessToken.replace(BEARER, ""));
var result = dataConversionService.saveGraduationStudentRecord(UUID.fromString(studentID),graduationStatus, ongoingUpdate);
return response.GET(result);
}

@PostMapping(EducGradStudentApiConstants.CONV_GRADUATION_STATUS_FOR_ONGOING_UPDATES)
@PreAuthorize(PermissionsConstants.UPDATE_GRADUATION_STUDENT)
@Operation(summary = "Update Graduation Status At Field Level for Ongoing Updates", description = "Update Graduation Status At Field Level for Ongoing Updates", tags = { "Data Conversion" })
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")})
public ResponseEntity<GraduationStudentRecord> updateGraduationStatusForOngoingUpdates(@RequestBody OngoingUpdateRequestDTO requestDTO,
@RequestHeader(name="Authorization") String accessToken) {
logger.debug("Save Graduation Student Record for Student ID");
var result = dataConversionService.updateGraduationStatusByFields(requestDTO, accessToken.replace(BEARER, ""));
return response.GET(result);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package ca.bc.gov.educ.api.gradstudent.model.dto;

import ca.bc.gov.educ.api.gradstudent.constant.FieldName;
import ca.bc.gov.educ.api.gradstudent.constant.FieldType;
import lombok.Builder;
import lombok.Data;

import java.util.Objects;

@Builder
@Data
public class OngoingUpdateFieldDTO {
private FieldType type;
private FieldName name;
private Object value;

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
OngoingUpdateFieldDTO that = (OngoingUpdateFieldDTO) o;
return getName() == that.getName();
}

@Override
public int hashCode() {
return Objects.hash(getName());
}

@Override
public String toString() {
return "OngoingUpdateFieldDTO{" +
"type=" + type +
", name=" + name +
", value=" + value +
'}';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package ca.bc.gov.educ.api.gradstudent.model.dto;

import ca.bc.gov.educ.api.gradstudent.constant.TraxEventType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@NoArgsConstructor
@Data
public class OngoingUpdateRequestDTO {
private String studentID;
private String pen;
private TraxEventType eventType;
private List<OngoingUpdateFieldDTO> updateFields = new ArrayList<>();
}
Loading
Loading