Uh oh!
There was an error while loading. Please reload this page.
feat: list_tables, list_projects, list_datasets, list_models, list_routines, and list_jobs now accept a page_size parameter to control page size - #686
Conversation
plamut
left a comment
There was a problem hiding this comment.
Code-wise it looks good, HTTPIterator() instances are instantiated with the new page_size argument. 👍 I only found missing license headers and a punctuation nit.
Two observations to discuss:
RowIteratorsubclasses HTTPIterator, but does not passpage_sizeto it in __init__(), although it does store it a few lines after, overriding the value the superclass sets. Should we nevertheless explicitly passpage_sizeto the superclass in case the latter's logic changes in a non-trivial way?- The new
google-api-coreversion pin is narrowed. We had problems in the past when different clout libraries pinned incompatible version ranges, causing conflicts, thus we tend to keep the ranges wide, if possible.
A quick glance over the core issue tracker does not reveal anything significant that would require capping thepython-api-coreversion in other libraries, thus it's probably fine, just mentioning it as a sanity check.
@tswast Are you aware of any current issues in api-core that require a temporary version cap in any of the other libraries?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jimfulton
commented
Jun 4, 2021
Doh!
Of course, I only upped the minimum version, because we depend on a change there. Thanks for the review!!! |
tswast
commented
Jun 4, 2021
I'm not aware of any, though Yoshi chat might have better visibility on that. The main issue is that people can end up pinning older versions in their applications / environments. Previously, this only gave a warning in pip, but with later versions it should show an error. |
plamut
left a comment
There was a problem hiding this comment.
A license header is duplicated, but otherwise looks good.
| # Copyright 2021 Google LLC | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. |
There was a problem hiding this comment.
Duplicated license? :)
| # Copyright 2021 Google LLC | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # https://www.apache.org/licenses/LICENSE-2.0 | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. |
TL; DR - updating the
Yeah, it's just that this is now the latest and greatest version, while at a few occasions some of the libraries actually had to cap the maximum
WIth the new pip resolver, wouldn't that just not install the latest |
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:
Fixes#685 🦕