FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: HTTPIterator now accepts a page_size parameter to control page … by jimfulton · Pull Request #197 · googleapis/python-api-core · GitHub

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
/ python-api-core Public archive

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

Merged
jimfulton merged 2 commits into
masterfrom
riversnake-page_size
Jun 2, 2021
Merged

feat: HTTPIterator now accepts a page_size parameter to control page …#197
jimfulton merged 2 commits into
masterfrom
riversnake-page_size

Conversation

Copy link
Copy Markdown

…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 Bot added the cla: yes This human has signed the Contributor License Agreement. label May 26, 2021
jimfulton marked this pull request as ready for review May 26, 2021 23:34
jimfulton requested a review from a team May 26, 2021 23:34
Comment thread tests/unit/test_page_iterator.py Outdated
def test_page_size_items(self, page_size, max_results, pages):
path = "/foo"
NITEMS = 10
page_size = 3

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fixed. Thanks!

(This was left over from before this was parametrized.)

Copy link
Copy Markdown
Author

@chrisrossi are you ready to approve? :)

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

Copy link
Copy Markdown

@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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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


Back | FazBrowse Home | New Git URL