From d3280a3feb595e293cec8744eea502b7ba046be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Semp=C3=A9r=C3=A9?= Date: Thu, 4 Jan 2024 10:38:18 +0100 Subject: [PATCH] Minor changes --- pom.xml | 2 +- .../java/org/brapi/v2/api/AttributevaluesApiController.java | 2 +- src/main/java/org/brapi/v2/api/CallsetsApiController.java | 2 +- src/main/java/org/brapi/v2/api/GermplasmApiController.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index f53d0be..92fc0d0 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ com.github.joschi.jackson jackson-datatype-threetenbp - 2.12.5 + 2.13.5 diff --git a/src/main/java/org/brapi/v2/api/AttributevaluesApiController.java b/src/main/java/org/brapi/v2/api/AttributevaluesApiController.java index 47c3370..355bc49 100644 --- a/src/main/java/org/brapi/v2/api/AttributevaluesApiController.java +++ b/src/main/java/org/brapi/v2/api/AttributevaluesApiController.java @@ -149,7 +149,7 @@ public ResponseEntity searchAttributevalues Authentication auth = tokenManager.getAuthenticationFromToken(tokenManager.readToken(request)); String sCurrentUser = auth == null || "anonymousUser".equals(auth.getName()) ? "anonymousUser" : auth.getName(); - LinkedHashMap individuals = MgdbDao.getInstance().loadIndividualsWithAllMetadata(programDbId, sCurrentUser, null, germplasmIdsToReturn); + LinkedHashMap individuals = MgdbDao.getInstance().loadIndividualsWithAllMetadata(programDbId, sCurrentUser, null, germplasmIdsToReturn, null); ArrayList data = new ArrayList<>(); for (String individualId : individuals.keySet()) { diff --git a/src/main/java/org/brapi/v2/api/CallsetsApiController.java b/src/main/java/org/brapi/v2/api/CallsetsApiController.java index 0fba6cb..44a0465 100644 --- a/src/main/java/org/brapi/v2/api/CallsetsApiController.java +++ b/src/main/java/org/brapi/v2/api/CallsetsApiController.java @@ -232,7 +232,7 @@ public ResponseEntity searchCallsetsPost( @ApiParam(value indIdToSampleIdMap.put(sample.getIndividual(), sample.getId()); // attach individual metadata to callsets - Map indMap = MgdbDao.getInstance().loadIndividualsWithAllMetadata(db, sCurrentUser, null, indIdToSampleIdMap.keySet()); + Map indMap = MgdbDao.getInstance().loadIndividualsWithAllMetadata(db, sCurrentUser, null, indIdToSampleIdMap.keySet(), null); for (int i=0; i