So, I'm using your library, and I just saw that to download all my projects (97) I need to perform 4 requests.
This because Redmine uses 25 as limit by default.
Why just not using something like
public List<Project> getProjects() throws RedmineException {
try {
return transport.getObjectsList(Project.class,
new RequestParam("include", "trackers"), new RequestParam("limit", "100"));
} catch (NotFoundException e) {
throw new RedmineInternalError("NotFoundException received, which should never happen in this request");
}
}
here
| publicList<Project> getProjects() throwsRedmineException { |
| try { |
| returntransport.getObjectsList(Project.class, |
| newRequestParam("include", "trackers")); |
| } catch (NotFoundExceptione) { |
| thrownewRedmineInternalError("NotFoundException received, which should never happen in this request"); |
| } |
| } |
so that we will have to make 1/4 of the requests?
So, I'm using your library, and I just saw that to download all my projects (97) I need to perform 4 requests.
This because Redmine uses 25 as limit by default.
Why just not using something like
here
redmine-java-api/src/main/java/com/taskadapter/redmineapi/ProjectManager.java
Lines 65 to 72 in e7d4eff
so that we will have to make 1/4 of the requests?