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 — Converting Pub/Sub client->list_subscriptions to iterator. by dhermes · Pull Request #2633 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Oct 27, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

There is surprisingly no system test for Client.list_subscriptions(). After seeing how different the implementations of Client.list_subscriptions() and Topic.list_subscriptions() are, I am strongly for adding such a system test.

Sending this out without fixing unit tests to get it in the hands of reviewers. The unit tests may take me a non-trivial time, but I am working on them.

Sorry, something went wrong.

Uh oh!

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

All reactions
dhermes added 4 commits October 27, 2016 10:05
@dhermes
Adding client to GAX _SubscriberAPI constructor.
64957c7
Also replacing _subscription_pb_to_mapping with MessageToDict.
@dhermes
Renaming _item_to_subscription helper.
af5f2d4
Making it more specific to the methods that use it
(topic_list_subscriptions) since list_subscriptions will
also need to convert an item to a subscription.
@dhermes
Using Iterator as response for Pub/Sub list_subscriptions().
0859cc3
Also remove GAX confusion in Pub/Sub between max_results and
page_size.
@dhermes
Updating Pub/Sub client.list_subscriptions() snippet.
5c1cbb8
@dhermes dhermes added the api: pubsub Issues related to the Pub/Sub API. label Oct 27, 2016
@dhermes dhermes assigned daspecster and tseaver Oct 27, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 27, 2016
@dhermes
Updating Client.list_subscriptions() unit tests.
e1fbb6b
These changes are needed to cover the change to iterators.
@dhermes dhermes mentioned this pull request Oct 28, 2016
Converting Logging client->list_entries to iterator. #2636
Merged
@dhermes

dhermes commented Oct 28, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver @daspecster PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

@daspecster daspecster mentioned this pull request Oct 29, 2016
Add system test for pubsub client.list_subscriptions() #2643
Closed
daspecster
daspecster reviewed Oct 29, 2016
View reviewed changes

@daspecster daspecster left a comment

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.

This LGTM. @tseaver?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pubsub/google/cloud/pubsub/_gax.py
raise Conflict(topic_path)
raise
return _subscription_pb_to_mapping(sub_pb)
return MessageToDict(sub_pb)

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
dhermes merged commit 53c189a into googleapis:master Oct 29, 2016
@dhermes
dhermes deleted the pubsub-iterators-3 branch October 29, 2016 16:06
@dhermes dhermes mentioned this pull request Nov 14, 2016
Upgrading core to version to 0.21.0. #2733
Merged
@dhermes dhermes mentioned this pull request Dec 9, 2016
Update versions for mega-release. #2846
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@dhermes
Merge pull request googleapis#2633 from dhermes/pubsub-iterators-3
37ae735
Converting Pub/Sub client->list_subscriptions to iterator.
@theacodes theacodes unassigned daspecster Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@daspecster daspecster daspecster left review comments
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: pubsub Issues related to the Pub/Sub 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 @daspecster @tseaver @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.