Skip to content

Commit

Permalink
Merge branch 'genomic-v2' into ALS-6511
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Aug 13, 2024
2 parents 37c739f + b2c6346 commit 9e2fd0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,20 @@ public SearchResults search(@RequestBody QueryRequest searchJson) {
}).collect(Collectors.toMap(Entry::getKey, Entry::getValue)) : allColumns;

// Info Values
Map<String, Map> infoResults = new HashMap<>();
log.warn("Info values no longer supported for this resource");
Map<String, Map> infoResults = new TreeMap<String, Map>();
abstractProcessor.getInfoStoreMeta().stream().forEach(infoColumnMeta -> {
//FileBackedByteIndexedInfoStore store = abstractProcessor.getInfoStore(infoColumn);
String query = searchJson.getQuery().toString();
String lowerCase = query.toLowerCase();
boolean storeIsNumeric = infoColumnMeta.isContinuous();
if (infoColumnMeta.getDescription().toLowerCase().contains(lowerCase)
|| infoColumnMeta.getKey().toLowerCase().contains(lowerCase)) {
infoResults.put(infoColumnMeta.getKey(),
ImmutableMap.of("description", infoColumnMeta.getDescription(), "values",
storeIsNumeric ? new ArrayList<String>() : abstractProcessor.searchInfoConceptValues(infoColumnMeta.getKey(), ""), "continuous",
storeIsNumeric));
}
});

return new SearchResults()
.setResults(
Expand Down
1 change: 1 addition & 0 deletions war/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<session-config>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
</web-app>

0 comments on commit 9e2fd0c

Please sign in to comment.