RED-8702: Explore document databases to store entityLog
This commit is contained in:
parent
fc822da032
commit
0485587450
@ -264,7 +264,8 @@ public class AnalyzeService {
|
|||||||
|
|
||||||
EntityLog entityLog = entityLogChanges.getEntityLog();
|
EntityLog entityLog = entityLogChanges.getEntityLog();
|
||||||
|
|
||||||
//hotfix for tests (todo 8702)
|
// hotfix for tests : analysis numbers should be incremented in every follow-up request,
|
||||||
|
// then querying if the entity log exists would not be necessary
|
||||||
if (entityLog.getAnalysisNumber() <= 0 && !redactionStorageService.entityLogExists(analyzeRequest.getDossierId(), analyzeRequest.getFileId())) {
|
if (entityLog.getAnalysisNumber() <= 0 && !redactionStorageService.entityLogExists(analyzeRequest.getDossierId(), analyzeRequest.getFileId())) {
|
||||||
redactionStorageService.insertEntityLog(analyzeRequest.getDossierId(), analyzeRequest.getFileId(), entityLog);
|
redactionStorageService.insertEntityLog(analyzeRequest.getDossierId(), analyzeRequest.getFileId(), entityLog);
|
||||||
|
|
||||||
|
|||||||
@ -583,7 +583,6 @@ public abstract class AbstractRedactionIntegrationTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// todo: 8702 check if this is the way
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
protected void mockProvideMongoDBConnection() {
|
protected void mockProvideMongoDBConnection() {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user