FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Converting Pub/Sub client->list_subscriptions to iterator. by dhermes · Pull Request #2633 · googleapis/google-cloud-python · GitHub

Converting Pub/Sub client->list_subscriptions to iterator. - #2633

Merged
dhermes merged 5 commits into
googleapis:masterfrom
dhermes:pubsub-iterators-3
Oct 29, 2016
Merged

Converting Pub/Sub client->list_subscriptions to iterator.#2633
dhermes merged 5 commits into
googleapis:masterfrom
dhermes:pubsub-iterators-3

Conversation

dhermes commented Oct 27, 2016
edited
Loading

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.

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.
dhermes added the api: pubsub Issues related to the Pub/Sub API. label Oct 27, 2016
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 27, 2016
These changes are needed to cover the change to iterators.

dhermes commented Oct 28, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver @daspecster PTAL

daspecster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This LGTM. @tseaver?

raise Conflict(topic_path)
raise
return _subscription_pb_to_mapping(sub_pb)
return MessageToDict(sub_pb)

This comment was marked as spam.

dhermes merged commit 53c189a into googleapis:master Oct 29, 2016
dhermes deleted the pubsub-iterators-3 branch October 29, 2016 16:06
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL