fix(DuplicateService): [AOU-1996] ignore DELETED publications when checking for duplicates
1 unresolved thread
fix(DuplicateService): [AOU-1996] ignore DELETED publications when checking for duplicates
Edited by Nicolas.Rod
Merge request reports
Activity
assigned to @Alicia.DeDiosFuente
222 223 notSamePublicationCondition.setValue(publicationId); 223 224 conditionList.add(notSamePublicationCondition); 224 225 226 // Do not find publications that are DELETED or REJECTED 227 AouSearchCondition deletedPublicationCondition = new AouSearchCondition(); 228 deletedPublicationCondition.setType(SearchConditionType.TERM); 229 deletedPublicationCondition.setBooleanClauseType(BooleanClauseType.MUST_NOT); 230 deletedPublicationCondition.setField(AouConstants.INDEX_FIELD_STATUS); 231 deletedPublicationCondition.getTerms().add(Publication.PublicationStatus.DELETED.toString());
Please register or sign in to reply