Skip to content

Increase limit for projects download #369

@AlbertoSinigaglia

Description

@AlbertoSinigaglia

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

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions