-
Notifications
You must be signed in to change notification settings - Fork 319
Create pubsub subscriptions in the project specified in dataflow options #221
Create pubsub subscriptions in the project specified in dataflow options #221
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
As requested, I signed the CLA. |
|
CLAs look good, thanks! |
|
Mark, can you look at this w.r.t. your Beam work updating PubSubIO? |
|
LGTM |
|
@dhalperi Is this PR good to merge? It would be great to get this in the next release so we can remove the workarounds we currently have in place. |
|
LGTM This looks fine to merge. One note, however: it won't fix streaming pipelines reading from Pubsub, since those don't use this code. This is just a default implementation that the batch and direct runners use. Fixing this for streaming pipelines will require changes to the Dataflow backend. |
|
@dpmills, this should currently be working as expected on the @rculbertson, would you be willing to add a unit test to make sure this scenario doesn't regress? The change itself is fine. Two things worth noting:
We'll try to get this integrated early next week, and make sure it is part of the next release (1.6.0). |
|
@davorbonaci Sure I can add a test sometime this week. Thanks! |
a6cee4a to
0cea0ef
Compare
|
@davorbonaci I've added a test to |
PubsubIO would create subscriptions in the same project as the topic. This fails for users who have permissions to subscribe to that topic, but do not have permissions to create subscriptions in that project. Instead create the subscription in the project specified in dataflow options. If no project is specified, then fallback to the topic project.
0cea0ef to
71ad410
Compare
|
@dhalperi @davorbonaci: Any update on getting this PR merged? Thanks! |
|
Looks like this functionality was added in #278. Closing PR. |
|
Ryan, Thanks for the update. Is the new test you added still useful and relevant? If so, please rebase and reopen and I'll take a look! Thanks! |
PubsubIO would create subscriptions in the same project as the topic. This fails for users who have permissions to subscribe to that topic, but do not have permissions to create subscriptions in that project. Instead create the subscription in the project specified in dataflow options. If no project is specified, then fallback to the topic project.
This is to address #220.