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

How to do pagination? #175

Open
hakunin opened this issue Jan 5, 2016 · 5 comments
Open

How to do pagination? #175

hakunin opened this issue Jan 5, 2016 · 5 comments
Labels

Comments

@hakunin
Copy link

hakunin commented Jan 5, 2016

Hi,
is there a way to paginate over results and hook into the pagination process?

One of the boards I am importing seems to be overflowing my app's memory limit, so I want to make sure I don't load all the cards at once.

Thanks!

@rossta
Copy link
Collaborator

rossta commented Jan 6, 2016

Have you tried using params supported for the card endpoint like board.cards(limit: 50)?

@hakunin
Copy link
Author

hakunin commented Jan 6, 2016

Hi, I know there is a limit param, but how do I grab the next page and more importantly, does the gem paginete for me or not?

I tried going straight to the api using the since attribute and supplied last card's last update at attribute to it, but the API didn't return anything.

@hakunin
Copy link
Author

hakunin commented Jan 26, 2016

@rossta Does the gem paginate for me if I do for instance board.cards?

@hakunin
Copy link
Author

hakunin commented Jan 26, 2016

Would really appreciate advice on how to do pagination with trello if you have any :)
http://stackoverflow.com/questions/34612933/how-to-paginate-trello-api-response

@runlevel5
Copy link
Collaborator

@hakunin there is a room for a Paginator util class if you are up for the implementation.

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

No branches or pull requests

4 participants