Merge branch 'RED-7784-booleanflag' into 'master'
RED-7784 - change Boolean flag Closes RED-7784 See merge request redactmanager/redaction-report-service!27
This commit is contained in:
commit
06db0c5393
@ -24,7 +24,7 @@ public class ReportRequestMessage {
|
||||
|
||||
private String dossierTemplateId;
|
||||
|
||||
private boolean includeUnprocessed;
|
||||
private Boolean includeUnprocessed;
|
||||
|
||||
@Builder.Default
|
||||
private List<String> fileIds = new ArrayList<>();
|
||||
|
||||
@ -14,6 +14,6 @@ public class ReportResultMessage {
|
||||
private String userId;
|
||||
private String downloadId;
|
||||
private String reportFileInformationStorageId;
|
||||
private boolean includeUnprocessed;
|
||||
private Boolean includeUnprocessed;
|
||||
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ public class ReportGenerationService {
|
||||
var fileStatus = fileStatusClient.getFileStatus(dossierId, fileId);
|
||||
generatePlaceholderService.resolveFileAttributeValues(fileStatus, placeholderModel);
|
||||
|
||||
List<ReportRedactionEntry> reportEntries = entityLogConverterService.getReportEntries(dossierId, fileId, fileStatus.isExcluded(), reportMessage.isIncludeUnprocessed());
|
||||
List<ReportRedactionEntry> reportEntries = entityLogConverterService.getReportEntries(dossierId, fileId, fileStatus.isExcluded(), reportMessage.getIncludeUnprocessed());
|
||||
|
||||
generateMultiFileExcelReports(reportTemplates.multiFileWorkbookReportTemplates, placeholderModel, fileStatus, isLastFile, dossierName, reportEntries);
|
||||
|
||||
|
||||
@ -44,7 +44,8 @@ public class ReportMessageReceiver {
|
||||
log.info("Start generating reports for downloadId {}", reportMessage.getDownloadId());
|
||||
|
||||
var reportFileInformationStorageId = reportGenerationService.generateReports(reportMessage);
|
||||
addToReportResultQueue(reportMessage.getUserId(), reportMessage.getDownloadId(), reportFileInformationStorageId, 1, reportMessage.isIncludeUnprocessed());
|
||||
addToReportResultQueue(reportMessage.getUserId(), reportMessage.getDownloadId(), reportFileInformationStorageId, 1,
|
||||
reportMessage.getIncludeUnprocessed() == null || reportMessage.getIncludeUnprocessed());
|
||||
|
||||
long end = System.currentTimeMillis();
|
||||
log.info("Successfully generated reports for downloadId {}, took {}", reportMessage.getDownloadId(), end - start);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user