Skip to content

Commit

Permalink
Make terminology server api communication page sizes configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
RalphBln authored and ChristophB committed Jan 27, 2025
1 parent f32a90d commit c2505af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
public class CodeRepository extends OlsRepository {
private static final Logger log = LoggerFactory.getLogger(CodeRepository.class);

@Value("${spring.paging.page-size:10}")
@Value("${coding.suggestions-page-size}")
private int suggestionsPageSize;

@Value("500")
@Value("${coding.code-children-page-size}")
private int codeChildrenPageSize;

@Autowired private CodeSystemRepository codeSystemRepository;
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ top:

coding:
terminology-service: ${TERMINOLOGY_SERVICE_ENDPOINT:https://www.ebi.ac.uk/ols4/api}
suggestions-page-size: 1000
code-children-page-size: 500
2 changes: 2 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ top:

coding:
terminology-service: ${TERMINOLOGY_SERVICE_ENDPOINT:http://localhost:9000/api}
suggestions-page-size: 1000
code-children-page-size: 500

0 comments on commit c2505af

Please sign in to comment.