Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase limit for projects download #369

Open
AlbertoSinigaglia opened this issue May 25, 2021 · 0 comments
Open

Increase limit for projects download #369

AlbertoSinigaglia opened this issue May 25, 2021 · 0 comments

Comments

@AlbertoSinigaglia
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant