Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: publish with ordering keys #156

Merged
merged 6 commits into from
Aug 7, 2020
Merged

Conversation

anguillanneuf
Copy link
Contributor

@anguillanneuf anguillanneuf commented Jul 14, 2020

Add samples for publish with ordering keys. The test can't be run yet because the feature isn't released:

  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 14, 2020
@anguillanneuf anguillanneuf marked this pull request as draft July 14, 2020 22:35
@anguillanneuf anguillanneuf added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 14, 2020
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

The new generated client will introduce quite a few incompatibilities (unless it's a microgenerator issue that will be fixed). Maybe first check if these changes also work on the #158 PR branch?
(the latter already contains the new generated client)

# subscription_id = "your-subscription-id"

subscriber = pubsub_v1.SubscriberClient()
topic_path = subscriber.topic_path(project_id, topic_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

topic_path() does not exist anymore on subscriber client, had to fix quite a few of these in #158. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a massive PR! Thank you for the heads-up! I will aim to merge this one after that one and the changes are in.

samples/snippets/publisher.py Show resolved Hide resolved
samples/snippets/publisher.py Show resolved Hide resolved
@busunkim96 busunkim96 closed this Jul 31, 2020
@plamut plamut reopened this Jul 31, 2020
@anguillanneuf anguillanneuf removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 6, 2020
@anguillanneuf anguillanneuf marked this pull request as ready for review August 6, 2020 17:59
@anguillanneuf anguillanneuf requested a review from a team as a code owner August 6, 2020 17:59
@anguillanneuf anguillanneuf merged commit 2631980 into master Aug 7, 2020
@anguillanneuf anguillanneuf deleted the samples-ordering branch August 7, 2020 17:44
@plamut
Copy link
Contributor

plamut commented Aug 8, 2020

@anguillanneuf How urgent it is to get this in / publish it?

If possible, we would like to avoid making a yet another "last" Python 2 release and potentially extra work on the PR transitioning the library to the microgenerator.

@anguillanneuf
Copy link
Contributor Author

anguillanneuf commented Aug 10, 2020

@plamut Thanks for checking in with me. No need for another Python 2 release. I have not yet "published" the sample on Cloud site. Currently only the Java sample is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants