Skip to content

Commit

Permalink
server: set default data release when it is not specified in the url,…
Browse files Browse the repository at this point in the history
… #TASK-4768, #TASK-4761
  • Loading branch information
jtarraga committed Sep 4, 2023
1 parent 1a7b19d commit 577f541
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public PharmacogenomicsWSServer(@PathParam("apiVersion") @ApiParam(name = "apiVe
public Response getAll() {
try {
PharmaChemicalQuery query = new PharmaChemicalQuery(uriParams);
query.setDataRelease(getDataRelease());
CellBaseDataResult<PharmaChemical> queryResults = pharmacogenomicsManager.search(query);

return createOkResponse(queryResults);
Expand Down Expand Up @@ -171,6 +172,7 @@ public Response getUniqueValues(@QueryParam("field") @ApiParam(name = "field", r
try {
copyToFacet("field", field);
PharmaChemicalQuery query = new PharmaChemicalQuery(uriParams);
query.setDataRelease(getDataRelease());
CellBaseDataResult<String> queryResults = pharmacogenomicsManager.distinct(query);
return createOkResponse(queryResults);
} catch (Exception e) {
Expand Down

0 comments on commit 577f541

Please sign in to comment.