RED-3117: Enbled to ignore invalid entries at addToDictionary for automated pushing entries in analysis
This commit is contained in:
parent
60a0adb843
commit
0296745efc
@ -12,7 +12,7 @@
|
|||||||
<artifactId>redaction-service-api-v1</artifactId>
|
<artifactId>redaction-service-api-v1</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<persistence-service.version>0.135.0</persistence-service.version>
|
<persistence-service.version>0.149.0</persistence-service.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@ -122,7 +122,7 @@ public class DictionaryService {
|
|||||||
|
|
||||||
dictionary.getDictionaryModels().forEach(dm -> {
|
dictionary.getDictionaryModels().forEach(dm -> {
|
||||||
if (dm.isRecommendation() && !dm.getLocalEntries().isEmpty()) {
|
if (dm.isRecommendation() && !dm.getLocalEntries().isEmpty()) {
|
||||||
dictionaryClient.addEntries(IdBuilder.getTypeId(dm.getType(), dossierTemplateId, dm.isDossierDictionary() ? dossierId : null), new ArrayList<>(dm.getLocalEntries()), false);
|
dictionaryClient.addEntries(IdBuilder.getTypeId(dm.getType(), dossierTemplateId, dm.isDossierDictionary() ? dossierId : null), new ArrayList<>(dm.getLocalEntries()), false, true);
|
||||||
long externalVersion = dictionaryClient.getVersion(dossierTemplateId);
|
long externalVersion = dictionaryClient.getVersion(dossierTemplateId);
|
||||||
if (externalVersion == dictionary.getVersion().getDossierTemplateVersion() + 1) {
|
if (externalVersion == dictionary.getVersion().getDossierTemplateVersion() + 1) {
|
||||||
dictionary.getVersion().setDossierTemplateVersion(externalVersion);
|
dictionary.getVersion().setDossierTemplateVersion(externalVersion);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user