diff --git a/.github/workflows/build.from.developer.branch.deploy.to.dev.yml b/.github/workflows/build.from.developer.branch.deploy.to.dev.yml index fed643e1..ca249423 100644 --- a/.github/workflows/build.from.developer.branch.deploy.to.dev.yml +++ b/.github/workflows/build.from.developer.branch.deploy.to.dev.yml @@ -27,7 +27,7 @@ env: MAX_CPU: "300m" MIN_MEM: "1024Mi" MAX_MEM: "4Gi" - MIN_REPLICAS: "3" + MIN_REPLICAS: "2" MAX_REPLICAS: "3" on: diff --git a/.github/workflows/build.from.main.branch.deploy.to.dev.yml b/.github/workflows/build.from.main.branch.deploy.to.dev.yml index 491a45eb..2379fb73 100644 --- a/.github/workflows/build.from.main.branch.deploy.to.dev.yml +++ b/.github/workflows/build.from.main.branch.deploy.to.dev.yml @@ -27,7 +27,7 @@ env: MAX_CPU: "300m" MIN_MEM: "1024Mi" MAX_MEM: "4Gi" - MIN_REPLICAS: "3" + MIN_REPLICAS: "2" MAX_REPLICAS: "3" on: diff --git a/.github/workflows/build.from.release.branch.deploy.to.dev.yml b/.github/workflows/build.from.release.branch.deploy.to.dev.yml index d7e54483..bc10c94b 100644 --- a/.github/workflows/build.from.release.branch.deploy.to.dev.yml +++ b/.github/workflows/build.from.release.branch.deploy.to.dev.yml @@ -27,7 +27,7 @@ env: MAX_CPU: "300m" MIN_MEM: "1024Mi" MAX_MEM: "4Gi" - MIN_REPLICAS: "3" + MIN_REPLICAS: "2" MAX_REPLICAS: "3" on: diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index 3f3dcd45..a6cb4d19 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -22,7 +22,7 @@ env: MIN_MEM: "1024Mi" MAX_MEM: "4Gi" MIN_REPLICAS: "3" - MAX_REPLICAS: "3" + MAX_REPLICAS: "4" on: diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml index c1b11b13..533df8c0 100644 --- a/.github/workflows/deploy_test.yml +++ b/.github/workflows/deploy_test.yml @@ -22,7 +22,7 @@ env: MIN_MEM: "1024Mi" MAX_MEM: "4Gi" MIN_REPLICAS: "3" - MAX_REPLICAS: "3" + MAX_REPLICAS: "4" on: diff --git a/.gitignore b/.gitignore index 07c41426..9ef8b154 100644 --- a/.gitignore +++ b/.gitignore @@ -52,4 +52,5 @@ target/ build/ ### VS Code ### -.vscode/ \ No newline at end of file +.vscode/ +api/application-local.yaml diff --git a/api/pom.xml b/api/pom.xml index 9a1e2989..58992cad 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -6,7 +6,7 @@ ca.bc.gov.educ educ-grad-batch-graduation-api - 1.8.58 + 1.8.59 educ-grad-batch-graduation-api Ministry of Education GRAD BATCH GRADUATION API diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java index ca96c610..45464f60 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherController.java @@ -608,7 +608,7 @@ public ResponseEntity loadSummary(@RequestParam(name = "pageNu @PostMapping(EducGradBatchGraduationApiConstants.EXECUTE_SPECIALIZED_USER_REQ_RUNS) @PreAuthorize(PermissionsConstants.RUN_GRAD_ALGORITHM) - @Operation(summary = "Run Specialized TVR Runs", description = "Run specialized Distribution runs", tags = { "DISTRIBUTION" }) + @Operation(summary = "Run Specialized TVR Runs", description = "Run specialized Distribution runs", tags = { "Distribution" }) @ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK"),@ApiResponse(responseCode = "500", description = "Internal Server Error")}) public ResponseEntity launchUserReqDisRunSpecialJob(@PathVariable String credentialType, @RequestBody StudentSearchRequest studentSearchRequest) { logger.debug("launchUserReqDisRunSpecialJob"); @@ -645,7 +645,7 @@ public ResponseEntity launchUserReqDisRunSpecialJob(@Pat @PostMapping(EducGradBatchGraduationApiConstants.EXECUTE_SPECIALIZED_BLANK_USER_REQ_RUNS) @PreAuthorize(PermissionsConstants.RUN_GRAD_ALGORITHM) - @Operation(summary = "Run Specialized User Req Runs", description = "Run specialized Distribution runs", tags = { "DISTRIBUTION" }) + @Operation(summary = "Run Specialized User Req Runs", description = "Run specialized Distribution runs", tags = { "Distribution" }) @ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK"),@ApiResponse(responseCode = "500", description = "Internal Server Error")}) public ResponseEntity launchUserReqBlankDisRunSpecialJob(@RequestBody BlankCredentialRequest blankCredentialRequest, @PathVariable String credentialType) { logger.debug("launchUserReqDisRunSpecialJob"); diff --git a/api/src/main/resources/application.yaml b/api/src/main/resources/application.yaml index 39be3638..f4a20368 100644 --- a/api/src/main/resources/application.yaml +++ b/api/src/main/resources/application.yaml @@ -15,7 +15,7 @@ spring: password: ${PASSWORD} driver-class-name: oracle.jdbc.driver.OracleDriver jpa: - show-sql: true + show-sql: false database-platform: org.hibernate.dialect.OracleDialect hibernate: ddl-auto: none diff --git a/tools/config/update-configmap.sh b/tools/config/update-configmap.sh index c82e11b0..d9a044fc 100644 --- a/tools/config/update-configmap.sh +++ b/tools/config/update-configmap.sh @@ -71,6 +71,7 @@ oc create -n "$OPENSHIFT_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map --from-literal=NUMBER_OF_PARTITIONS="10" \ --from-literal=KEYCLOAK_TOKEN_URL="https://soam-$envValue.apps.silver.devops.gov.bc.ca/" \ --from-literal=REG_ALG_CRON="0 30 18 * * *" \ + --from-literal=RECORDS_STALE_IN_DAYS="1095" \ --dry-run=client -o yaml | oc apply -f - echo Creating config map "$APP_NAME"-flb-sc-config-map