-
Notifications
You must be signed in to change notification settings - Fork 535
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
feat(pubsub): Add Schema support #9305
Conversation
e51cbac
to
989d981
Compare
7bcf49f
to
d8de2eb
Compare
4ab3ada
to
dff3d90
Compare
Here is the summary of changes. You are about to add 12 region tags.
This comment is generated by snippet-bot.
|
Samples - Linux failure: 1 ruby version out of 4 failed with the following flake unrelated to this PR:
|
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.
I reviewed the samples:
- google-cloud-pubsub/samples/acceptance/data/*
- google-cloud-pubsub/samples/utilities/us-states_pb.rb
- google-cloud-pubsub/samples/schemas.rb
- google-cloud-pubsub/samples/acceptance/schemas_test.rb: thank you for adding tests for all the different scenarios!
@anguillanneuf Thank you! |
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.
LGTM
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem| | |||
gem.add_dependency "google-cloud-pubsub-v1", "~> 0.0" | |||
|
|||
gem.add_development_dependency "autotest-suffix", "~> 1.1" | |||
gem.add_development_dependency "avro", "~> 1.10" |
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.
Is this introducing the dependency because of the tests and/or samples? I'm a little nervous introducing the dependency for the entire library just because of those. For example, one who is using proto isn't going to want to have a dependency on the avro library.
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.
It's just for tests in this case, and won't impact the published package.
Development dependencies aren't installed by default and aren't activated when a gem is required.
https://guides.rubygems.org/specification-reference/#add_development_dependency
# than the one currently connected to, the alternate project ID can be | ||
# specified here. Not used if a fully-qualified schema name is | ||
# provided for `schema_name`. | ||
# @param [Boolean] skip_lookup Optionally create a {Subscription} object |
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.
Subscription -> Schema throughout this file.
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.
Fixed, thanks!
OSx build failing with:
|
closes: #9304