-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
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
redmine-java-api/src/main/java/com/taskadapter/redmineapi/ProjectManager.java
Lines 65 to 72 in e7d4eff
| public List<Project> getProjects() throws RedmineException { | |
| try { | |
| return transport.getObjectsList(Project.class, | |
| new RequestParam("include", "trackers")); | |
| } catch (NotFoundException e) { | |
| throw new RedmineInternalError("NotFoundException received, which should never happen in this request"); | |
| } | |
| } |
so that we will have to make 1/4 of the requests?
Metadata
Metadata
Assignees
Labels
No labels