Skip to content

Commit b48d215

Browse files
authored
SCRUM-5643 make download file name changes to allele/phenotype section as well (#1442)
1 parent 946e555 commit b48d215

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agr_api/src/main/java/org/alliancegenome/api/controller/AlleleController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public Response getPhenotypesPerAlleleDownload(String id, String phenotype, Stri
170170
reference,
171171
sortBy);
172172
Response.ResponseBuilder responseBuilder = Response.ok(phenotypeTranslator.getAllRows(response.getResults()));
173-
APIServiceHelper.setDownloadHeader(id, EntityType.ALLELE, EntityType.PHENOTYPE, responseBuilder);
173+
String alleleSymbol = getAllele(id).getAllele().getAlleleSymbol().getFormatText();
174+
APIServiceHelper.setDownloadHeaderByName(id, alleleSymbol, EntityType.ALLELE, EntityType.PHENOTYPE, responseBuilder);
174175
return responseBuilder.build();
175176
}
176177

0 commit comments

Comments
 (0)