GeezerVison is showing github.com — Converting Pub/Sub client->list_subscriptions to iterator. by dhermes · Pull Request #2633 · googleapis/google-cloud-python
Conversation
dhermes
commented
Oct 27, 2016
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Also replacing _subscription_pb_to_mapping with MessageToDict.
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.
Also remove GAX confusion in Pub/Sub between max_results and
page_size.
These changes are needed to cover the change to iterators.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
raise Conflict(topic_path)
|
|
|
raise
|
|
|
return _subscription_pb_to_mapping(sub_pb)
|
|
|
return MessageToDict(sub_pb)
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
richkadel
pushed a commit
to richkadel/google-cloud-python
that referenced
this pull request
May 6, 2017
Converting Pub/Sub client->list_subscriptions to iterator.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Labels
api: pubsub
Issues related to the Pub/Sub API.
cla: yes
This human has signed the Contributor License Agreement.
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.
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.