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

Use pagination link for subsequent pages #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gaqzi
Copy link

@gaqzi gaqzi commented Apr 17, 2016

When there are more pages of data to fetch from Meetup's API will
send in the meta object a link to the next page.

This code uses this next page to walk through all available responses
instead of hoping that max pagination + 1 will be enough for the amount
of groups that is available. :)

My Javascript is… rusty. So you'll probably want to clean this up.
And I'd love to hear what could be done to make this more javascriptie. :)

This relates to issue #19 and webuildsg/webuild#219.

When there are more pages of data to fetch from Meetup's API will
send in the `meta` object a link to the next page.

This code uses this next page to walk through all available responses
instead of hoping that max pagination + 1 will be enough for the amount
of groups that is available. :)

This relates to issue webuildorg#19 and webuildsg/webuild#219.
@gaqzi
Copy link
Author

gaqzi commented Apr 17, 2016

Oh, and this is a total case of "it works on my computer" as I didn't find any tests.
Couldn't be bothered dealing with writing new tests from scratch. :)

@sayanee
Copy link
Contributor

sayanee commented Apr 18, 2016

thanks! this is definitely a better logic - will try out this code 🤗

@sayanee
Copy link
Contributor

sayanee commented Apr 18, 2016

Thanks @gaqzi - this is definitely the correct way. I ran the code, but meetup.com events are not being added to the total events list. I suspect some async issues.

I will have a look at it to patch it.

@gaqzi
Copy link
Author

gaqzi commented Apr 18, 2016

booo, stupid code to not work :'(

@sayanee
Copy link
Contributor

sayanee commented Apr 18, 2016

💟 c'mon not all code that doesn't work are stupid, example this pull request 💯 😃

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

Successfully merging this pull request may close these issues.

2 participants