GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update samples to support latest Google Cloud Python by theacodes · Pull Request #656 · GoogleCloudPlatform/python-docs-samples

Conversation

@theacodes

@theacodes theacodes commented Nov 15, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

(I recommend reviewing commit by commit)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Jon Wayne Parrott added 9 commits November 15, 2016 10:17
Jon Wayne Parrott
Update to latest google-cloud-python
6351867
Change-Id: I11180caa0f97743fc3475e05fc44d5686702aabd
Jon Wayne Parrott
Fix some minor nox issues
d106640
Change-Id: I78ceda896df08c433620b3a40e21fef7bb72f4a2
Jon Wayne Parrott
Update datastore samples for new google-cloud-python
91847ca
Change-Id: I07d16616e373d925f6ce5e9e47ab2fb7d073eb59
Jon Wayne Parrott
Update bigquery samples to use latest google-cloud
1374be3
Change-Id: I6cbcca11be84baa7c40eed14b342cc916b9116d9
Jon Wayne Parrott
Update dns samples to use latest google-cloud
20d9de9
Change-Id: Ibd8cc3b651e666c5c5e7d9537a690cf4e9acc03a
Jon Wayne Parrott
Update logging samples to use latest google-cloud
11575bc
Change-Id: I3ea731e4022610802b262a93197dee17b2e09838
Jon Wayne Parrott
Update pubsub samples to use latest google-cloud
f691fbd
Change-Id: Iac57ac0708fadc11f358c1599f4d1ce94b0dac8b
Jon Wayne Parrott
Update storage samples to use latest google-cloud
22e3d53
Change-Id: Ic9731e804792aeaeee51ca87ab7dc5971fe7ef5b
Jon Wayne Parrott
Fix lint
03b27e8
Change-Id: Ibb9430ba18ac4c73608495c6ff3b050582040512
@theacodes theacodes added the API/client update label Nov 15, 2016
@theacodes theacodes assigned jerjou, waprin, elibixby and ryanmats Nov 15, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 15, 2016
jerjou
jerjou approved these changes Nov 15, 2016
View reviewed changes

ghost left a comment •
edited by jerjou
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cool beans - I like that the iterators page for you now :D (wow github just auto-completed my smiley into a dagger... sheesh. calm down, github.)

Just a couple minor suggestions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread datastore/cloud-client/snippets.py Outdated

return tasks, cursor
tasks = list(page)
next_cusor = query_iter.next_page_token

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

next_cusor? :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fixed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread nox.py
requirements = [
requirement for requirement in requirements if not
is_ignored(requirement)]

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could put this conditional in the previous comprehension, no?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'd rather not.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread nox.py
"""Ignores certain libraries."""
for library in IGNORED_LIBRARIES:
if requirement.startswith(library):
return True

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could do this more succinctly:

return any(requirement.startswith(l) for l in IGNORED_LIBRARIES)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I like it, but it's almost too clever. I'm going to leave as-is for now.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Don't care either way but don't think it's too clever, a bit more English-esque if anything.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Jon Wayne Parrott
Fix lint
3568981
Change-Id: I059b64397a783643a21ee75bf2d54082ce5cb23c
@waprin

ghost commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

LGTM, shoutout to @dhermes for a lot of nice refactors that make these samples look a lot nicer.

dhermes reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

ghost commented Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

@dpebot merge when travis passes, please.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dpebot

ghost commented Nov 15, 2016

Copy link
Copy Markdown
Collaborator

Okay! I'll merge when all statuses are green.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dpebot dpebot added the automerge Merge the pull request once unit tests and other checks pass. label Nov 15, 2016
Jon Wayne Parrott
Vision quickstart no longer fails on Py3
49405df
Change-Id: Iab5bd07b405cf57fa7407efcfa188d1320e5f867
dhermes
dhermes reviewed Nov 15, 2016
View reviewed changes
Comment thread bigquery/cloud-client/snippets.py Outdated
# Load at most 25 results. You can change the max_results argument to load
# more rows from BigQuery, but note that this can take some time. It's
# preferred to use a query.
rows = table.fetch_data(max_results=25)

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

You may prefer to just consume the iterator right here:

rows = list(table.fetch_data(max_results=25))

There is too much suspense between this and the for row in rows (when the request(s) actually get made)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

ghost Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Fair enough, done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@theacodes theacodes removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 15, 2016
Jon Wayne Parrott added 2 commits November 15, 2016 14:02
Jon Wayne Parrott
Address review comment.
ce4c736
Change-Id: I33997d42c6202c7f916bcebd4c5a9499392ac4db
Jon Wayne Parrott
Fix bigquery installed app sample
ffdf1ca
Change-Id: I9609daebbd2bfd62706193e80fde245bd1ae2566
@theacodes theacodes added the automerge Merge the pull request once unit tests and other checks pass. label Nov 15, 2016
@theacodes
theacodes merged commit cf1b498 into master Nov 15, 2016
@theacodes
theacodes deleted the google-cloud-update branch November 15, 2016 22:58
@m-strzelczyk m-strzelczyk mentioned this pull request Nov 18, 2022
migrate code from googleapis/python-language #8533
Merged
8 tasks
@chalmerlowe chalmerlowe mentioned this pull request Feb 19, 2026
migrate code from googleapis/python-logging #13844
Merged
9 tasks
@chalmerlowe chalmerlowe mentioned this pull request Apr 7, 2026
migrate code from googleapis/python-storage #13989
Merged
9 tasks
This was referenced Sep 8, 2026
migrate code from googleapis/python-bigquery #14589
Closed
docs: migrate code from googleapis/python-bigquery googleapis/google-cloud-python#18303
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers
@dhermes dhermes dhermes left review comments
@waprin waprin waprin left review comments
@jerjou jerjou jerjou approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jerjou jerjou

@waprin waprin

@elibixby elibixby

@ryanmats ryanmats

Labels

automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@theacodes @waprin @dpebot @dhermes @jerjou @googlebot @elibixby @ryanmats
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.