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

retrieveAll without any $params set hits limit #172

Closed
rogermartensson opened this issue Sep 14, 2016 · 2 comments
Closed

retrieveAll without any $params set hits limit #172

rogermartensson opened this issue Sep 14, 2016 · 2 comments

Comments

@rogermartensson
Copy link

I'm using a plugin (redissue) that uses Project::getIdByname() to retrieve a Id on a project in Redmine.
But I am hitting a limit on redmine since I have many projects. This limit seems to be 25 entries.

getIdByName() calls listing(). Listing() calls all() if forced or if $this->projects doesn't exists.
all() calls AbstractApi::retrieveAll() with $params set to an empty array when called from listing().
This make retrieveAll() to a get() which seems to retrieve the limit of 25 entries.

If I in all() insert a line like:
$params['limit']=300;

Then it seems to work. Not that it uses the supplied limit but skips running the single get() in the beginning of the retrieveAll() function.

@algorys
Copy link

algorys commented Apr 24, 2017

@rogermartensson I came across your ticket by chance 😉

I think it concerns rather the plugin redissue cause it's not php-redmine-api blame.

@rogermartensson
Copy link
Author

I'm closing my issue since it's too old.

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

No branches or pull requests

2 participants