Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

samples: publish with ordering keys#156

Merged
anguillanneuf merged 6 commits into
masterfrom
samples-ordering
Aug 7, 2020
Merged

samples: publish with ordering keys#156
anguillanneuf merged 6 commits into
masterfrom
samples-ordering

Conversation

@anguillanneuf

@anguillanneuf anguillanneuf commented Jul 14, 2020

Copy link
Copy Markdown
Contributor

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)

@anguillanneuf anguillanneuf requested a review from hongalex as a code owner July 14, 2020 22:34
@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
@anguillanneuf anguillanneuf requested a review from plamut July 14, 2020 22:35

@plamut plamut 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.

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
Copy Markdown
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
Copy Markdown
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.

Comment thread samples/snippets/publisher.py
Comment thread samples/snippets/publisher.py
@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

plamut commented Aug 8, 2020

Copy link
Copy Markdown
Contributor

@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

anguillanneuf commented Aug 10, 2020

Copy link
Copy Markdown
Contributor Author

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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