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

feat: HTTPIterator now accepts a page_size parameter to control page … #197

Merged
merged 2 commits into from Jun 2, 2021

Conversation

jimfulton
Copy link
Contributor

…size

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #194 🦕

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label May 26, 2021
@jimfulton jimfulton marked this pull request as ready for review May 26, 2021 23:34
@jimfulton jimfulton requested a review from a team as a code owner May 26, 2021 23:34
def test_page_size_items(self, page_size, max_results, pages):
path = "/foo"
NITEMS = 10
page_size = 3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is getting set twice, once via "parametrize" and once here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks!

(This was left over from before this was parametrized.)
@jimfulton
Copy link
Contributor Author

@chrisrossi are you ready to approve? :)

@jimfulton jimfulton merged commit a421913 into master Jun 2, 2021
@jimfulton jimfulton deleted the riversnake-page_size branch June 2, 2021 16:24
@chrisrossi
Copy link

@chrisrossi are you ready to approve? :)

Sorry, I missed this message. Yes, I was, but I don't think my approval would have made it mergeable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The page_iterator API proble, and proposed fix
3 participants