Pull request #55: RED-2000: Fixed failing report generation with excluded files
Merge in RED/redaction-report-service from RED-2000-master to master * commit '550356e975dfc911e87b53f986ecd45793307671': RED-2000: Fixed failing report generation with excluded files
This commit is contained in:
commit
f37491f3e2
@ -91,7 +91,7 @@ public class ReportGenerationService {
|
||||
|
||||
long start = System.currentTimeMillis();
|
||||
|
||||
List<ReportRedactionEntry> reportEntries = getReportEntries(reportMessage.getDossierId(), reportMessage.getFileIds().get(j));
|
||||
List<ReportRedactionEntry> reportEntries = getReportEntries(reportMessage.getDossierId(), reportMessage.getFileIds().get(j), fileStatus.isExcluded());
|
||||
|
||||
if (reportMessage.getReportTypes().contains(ReportType.EXCEL_MULTI_FILE)) {
|
||||
excelReportService.addEntries(excelMultiFileSheet, reportEntries, fileStatus.getFilename(), excelRowIndex);
|
||||
@ -171,7 +171,12 @@ public class ReportGenerationService {
|
||||
return storedFileInformation;
|
||||
}
|
||||
|
||||
private List<ReportRedactionEntry> getReportEntries(String dossierId, String fileId){
|
||||
private List<ReportRedactionEntry> getReportEntries(String dossierId, String fileId, boolean isExcluded){
|
||||
|
||||
if(isExcluded){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
RedactionLog redactionLog;
|
||||
try {
|
||||
redactionLog = redactionLogClient.getRedactionLog(dossierId, fileId, true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user