Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemSempere committed Jan 4, 2024
1 parent 993b4c9 commit d3280a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<dependency>
<groupId>com.github.joschi.jackson</groupId>
<artifactId>jackson-datatype-threetenbp</artifactId>
<version>2.12.5</version>
<version>2.13.5</version>
</dependency>
<!-- Bean Validation API support -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public ResponseEntity<GermplasmAttributeValueListResponse> searchAttributevalues

Authentication auth = tokenManager.getAuthenticationFromToken(tokenManager.readToken(request));
String sCurrentUser = auth == null || "anonymousUser".equals(auth.getName()) ? "anonymousUser" : auth.getName();
LinkedHashMap<String, Individual> individuals = MgdbDao.getInstance().loadIndividualsWithAllMetadata(programDbId, sCurrentUser, null, germplasmIdsToReturn);
LinkedHashMap<String, Individual> individuals = MgdbDao.getInstance().loadIndividualsWithAllMetadata(programDbId, sCurrentUser, null, germplasmIdsToReturn, null);

ArrayList<GermplasmAttributeValue> data = new ArrayList<>();
for (String individualId : individuals.keySet()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/brapi/v2/api/CallsetsApiController.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public ResponseEntity<CallSetsListResponse> searchCallsetsPost( @ApiParam(value
indIdToSampleIdMap.put(sample.getIndividual(), sample.getId());

// attach individual metadata to callsets
Map<String, Individual> indMap = MgdbDao.getInstance().loadIndividualsWithAllMetadata(db, sCurrentUser, null, indIdToSampleIdMap.keySet());
Map<String, Individual> indMap = MgdbDao.getInstance().loadIndividualsWithAllMetadata(db, sCurrentUser, null, indIdToSampleIdMap.keySet(), null);

for (int i=0; i<samples.size(); i++) {
GenotypingSample sample = samples.get(i);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/brapi/v2/api/GermplasmApiController.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ else if (!fGotGermplasmNames && !fGotExtRefs) {
}

for (String database : dbsToAccountFor) {
for (Individual ind : MgdbDao.getInstance().loadIndividualsWithAllMetadata(database, sCurrentUser, !projectsByModuleFromSpecifiedStudies.isEmpty() ? projectsByModuleFromSpecifiedStudies.get(database) : null, !individualsByModuleFromSpecifiedGermplasm.isEmpty() ? individualsByModuleFromSpecifiedGermplasm.get(database) : null).values()) {
for (Individual ind : MgdbDao.getInstance().loadIndividualsWithAllMetadata(database, sCurrentUser, !projectsByModuleFromSpecifiedStudies.isEmpty() ? projectsByModuleFromSpecifiedStudies.get(database) : null, !individualsByModuleFromSpecifiedGermplasm.isEmpty() ? individualsByModuleFromSpecifiedGermplasm.get(database) : null, null).values()) {

List synonyms = (List) ind.getAdditionalInfo().get("synonyms");
if (synonyms != null)
Expand Down

0 comments on commit d3280a3

Please sign in to comment.