taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
269 stars 162 forks source link

MembershipManager getMemberships doesn't get all #298

Closed ceac13 closed 6 years ago

ceac13 commented 6 years ago

The method getMemberships from MembershipManager just return 25 items at maximum. Probably it's caused by paging limit of Redmine API.

akurutin commented 6 years ago

I also noticed this and it is because of the limit of 25

alexeyOnGitHub commented 6 years ago

you are welcome to propose a patch for this

alexeyOnGitHub commented 6 years ago

RedmineManager class as setObjectsPerPage method that defines how many items are requested from Redmine in each request. it is up to Redmine server whether or not it will honor this request. I expect it to ignore numbers above a certain limit to protect the server.