From 26d993affd72144ee15c136259378fa8297dab9b Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Sat, 9 Mar 2024 22:56:28 +0100 Subject: [PATCH] #4554 - Allow displaying comments from annotators on hover when curating using curation sidebar on the annotation page - Fix lazy details for concept feature suggestions --- .../recommendation/RecommendationEditorExtension.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java b/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java index b3584892a78..aff17475098 100644 --- a/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java +++ b/inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/RecommendationEditorExtension.java @@ -321,14 +321,14 @@ public List lookupLazyDetails(SourceDocument aDocument, User a var detailGroups = new ArrayList(); for (var aFeature : annotationService.listAnnotationFeature(aLayer)) { if (aFeature.getLinkMode() == LinkMode.WITH_ROLE) { - return emptyList(); + continue; } var vid = VID.parse(aVid.getExtensionPayload()); var representative = predictions.getPredictionByVID(aDocument, vid); if (representative.isEmpty() || !representative.get().getFeature().equals(aFeature.getName())) { - return emptyList(); + continue; } var sao = representative.get(); @@ -340,7 +340,7 @@ public List lookupLazyDetails(SourceDocument aDocument, User a .findFirst(); if (group.isEmpty()) { - return emptyList(); + continue; } var pref = recommendationService.getPreferences(aUser, aDocument.getProject());