From 9fb26c935d96a3fb389580d8a28d0551b80dc9e6 Mon Sep 17 00:00:00 2001 From: arybakov Date: Wed, 21 Aug 2024 16:05:47 -0600 Subject: [PATCH] GRAD2-2817 TVR Delete Process - Backend Changes Endpoints --- .../api/batchgraduation/controller/JobLauncherController.java | 4 ++-- .../gov/educ/api/batchgraduation/model/BatchJobResponse.java | 1 - .../batchgraduation/controller/JobLauncherControllerTest.java | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) 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 8d62b2bd..45c28c1b 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 @@ -492,8 +492,8 @@ public ResponseEntity launchRegenerateStudentReports(@RequestB try { List finalUUIDs = gradSchoolOfRecordFilter.filterStudents(searchRequest); logger.info(" Number of Students [{}] ---------------------------------------------------------", finalUUIDs.size()); - int numberOfReports = restUtils.processStudentReports(finalUUIDs, reportType); - response.setMessage(numberOfReports + " student " + reportType + " reports successfully"); + restUtils.processStudentReports(finalUUIDs, reportType); + response.setStatus(BatchStatusEnum.COMPLETED.name()); return ResponseEntity.ok(response); } catch (Exception e) { response.setException(e.getLocalizedMessage()); diff --git a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/model/BatchJobResponse.java b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/model/BatchJobResponse.java index 17dafcc4..6b06f327 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/model/BatchJobResponse.java +++ b/api/src/main/java/ca/bc/gov/educ/api/batchgraduation/model/BatchJobResponse.java @@ -18,5 +18,4 @@ public class BatchJobResponse { private String localDownload; private String exception; - private String message; } diff --git a/api/src/test/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherControllerTest.java b/api/src/test/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherControllerTest.java index bf961130..f1c3cded 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherControllerTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/batchgraduation/controller/JobLauncherControllerTest.java @@ -592,7 +592,6 @@ public void testLaunchRegenerateStudentReportsJob() { } catch (Exception e) { exceptionIsThrown = true; } - assertThat(exceptionIsThrown).isFalse(); }