-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
*Describe the bug
without considering pagination i get 100 results back using registryClient.listRepositoryNames()
the PagedItrable examples using:
public List getRepositoryNames() {
List allRepositoryNames = new ArrayList<>();
PagedIterable repositories = registryClient.listRepositoryNames();
repositories.streamByPage().forEach(page -> {
allRepositoryNames.addAll(page.getValue());
});
return allRepositoryNames;
}
I still only get 100 records back.
Am I missing something ?
Exception or Stack Trace
No exception
To Reproduce
Create more than 100 repositories in your azure cr, then try the code
Code Snippet
See above
Expected behavior
I should be able to read all results with pagination.
**Screenshots”
Setup (please complete the following information):
- OS: osx, Linux
- IDE: IntelliJ, vscode
- Library/Libraries: [e.g. com.azure:azure-core:1.16.0 (groupId:artifactId:version)]
- Java version: 17
- App Server/Environment: N/A
- Frameworks: Spring Boot
Metadata
Metadata
Assignees
Labels
Type
Projects
Status