Pull request #180: RED-809: Added flag to AnalysisResult to see if a reanalysis or normal analysis was performed
Merge in RED/redaction-service from RED-809 to master * commit '041a3c87ae908fb8e127d4719aa421cbf6c3621e': RED-809: Added flag to AnalysisResult to see if a reanalysis or normal analysis was performed
This commit is contained in:
commit
4efe70f2a9
@ -25,6 +25,8 @@ public class AnalyzeResult {
|
|||||||
private long rulesVersion;
|
private long rulesVersion;
|
||||||
private long legalBasisVersion;
|
private long legalBasisVersion;
|
||||||
|
|
||||||
|
private boolean wasReanalyzed;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -269,8 +269,9 @@ public class ReanalyzeService {
|
|||||||
|
|
||||||
redactionLog.getRedactionLogEntry().removeIf(entry -> sectionsToReanalyse.contains(entry.getSectionNumber()));
|
redactionLog.getRedactionLogEntry().removeIf(entry -> sectionsToReanalyse.contains(entry.getSectionNumber()));
|
||||||
redactionLog.getRedactionLogEntry().addAll(newRedactionLogEntries);
|
redactionLog.getRedactionLogEntry().addAll(newRedactionLogEntries);
|
||||||
return finalizeAnalysis(analyzeRequest, startTime, redactionLog, text, dictionaryIncrement);
|
AnalyzeResult analyzeResult = finalizeAnalysis(analyzeRequest, startTime, redactionLog, text, dictionaryIncrement);
|
||||||
|
analyzeResult.setWasReanalyzed(true);
|
||||||
|
return analyzeResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user