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

Fix #111 by using next_url only for pagination handling #113

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GregSutcliffe
Copy link
Contributor

As per discussion, I removed the initial call to meetup_call as it appeared to be duplicating results where offsetn == 2.

Since we now don't actually use i in the API calls (it's all handled by next_page) I've also taken the opportunity to make the code more readable: offfsetn is renamed to max_pages, and we start the loop from 2 so we're clear it's all the subsequent pages.

Also, I snuck in an extra commit for default values on organizer because I keep tripping over that - but I can break it out to another PR if you wish.

I'll take a look at the tests now, but I wanted to get this posted while it was fresh in my head.

@maelle maelle requested a review from ledell March 22, 2021 12:12
@GregSutcliffe
Copy link
Contributor Author

Tests added as per discussion in #112

@GregSutcliffe
Copy link
Contributor Author

Ugh, tests have failed. They pass for me locally with testthat::test_file('tests/testthat/test-find_groups.R'), I will investigate...

@GregSutcliffe
Copy link
Contributor Author

That's got it. Forgot part of a commit from my local branch :)

@maelle
Copy link
Contributor

maelle commented Mar 24, 2021

@ledell would you have time to have a look? 🙂

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

Successfully merging this pull request may close these issues.

2 participants