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 — Updating list_metrics() to Iterator pattern. by dhermes · Pull Request #2653 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Oct 31, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

NOTE: Has #2651 as diffbase. Unit test changes will be forthcoming.

Sorry, something went wrong.

Uh oh!

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

All reactions
@dhermes dhermes added the api: logging Issues related to the Cloud Logging API. label Oct 31, 2016
@dhermes dhermes assigned daspecster and tseaver Oct 31, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 31, 2016
@dhermes
dhermes force-pushed the logging-iterators-metrics branch 2 times, most recently from fc6e57f to 5b33597 Compare October 31, 2016 23:31
@dhermes

dhermes commented Oct 31, 2016

Copy link
Copy Markdown
Contributor Author

@daspecster @tseaver PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 1, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

pyilnt failure:

logging/google/cloud/logging/_gax.py:500:1: E303 too many blank lines (3)
All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes force-pushed the logging-iterators-metrics branch from 5b33597 to ce40029 Compare November 1, 2016 04:46
@dhermes

dhermes commented Nov 1, 2016

Copy link
Copy Markdown
Contributor Author

Ahhhh! Darn rebases. PTAL.

Was that your only issue?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 1, 2016

Copy link
Copy Markdown
Contributor

I didn't really review it in detail since Travis was red.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Nov 1, 2016

Copy link
Copy Markdown
Contributor Author

OK well it's good to go now. LMK what you think

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver reviewed Nov 1, 2016
View reviewed changes
Comment thread logging/unit_tests/test_client.py
returned = {
'metrics': METRICS,
}
client.connection = _Connection(returned)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Comment thread logging/unit_tests/test_client.py Outdated
token = iterator.next_page_token

# First check the token.
self.assertIsNone(token)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

dhermes added 4 commits November 1, 2016 08:57
@dhermes
Updating list_metrics() to Iterator pattern.
fcf6a8e
@dhermes
Updating system test and docs for list_metrics() change.
bd179bc
@dhermes
Updating unit tests are list_metrics() iterator update.
9619426
@dhermes
Updating list_metrics() unit tests to reflect paging / non-paging.
9cf835c
@dhermes
dhermes force-pushed the logging-iterators-metrics branch from ce40029 to 9cf835c Compare November 1, 2016 16:24
@dhermes

dhermes commented Nov 1, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver approved these changes Nov 1, 2016
View reviewed changes
@dhermes
dhermes merged commit b4d87f7 into googleapis:master Nov 1, 2016
@dhermes
dhermes deleted the logging-iterators-metrics branch November 1, 2016 16:52
@dhermes dhermes mentioned this pull request Nov 14, 2016
Upgrading core to version to 0.21.0. #2733
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@dhermes
Merge pull request googleapis#2653 from dhermes/logging-iterators-met…
ac63bce
…rics

Updating list_metrics() to Iterator pattern.
@theacodes theacodes unassigned daspecster Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 24, 2025
@dhermes
Merge pull request #2653 from dhermes/logging-iterators-metrics
3e86b12
Updating list_metrics() to Iterator pattern.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@tseaver tseaver tseaver approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@tseaver tseaver

Labels

api: logging Issues related to the Cloud Logging API. 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.

4 participants

@dhermes @tseaver @daspecster @googlebot
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.