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

feat(pubsublite): create/update export subscriptions #6885

Merged
merged 10 commits into from Dec 10, 2022

Conversation

tmdiep
Copy link
Contributor

@tmdiep tmdiep commented Oct 18, 2022

  • Added support for creating and updating export subscriptions, which write messages to a configured destination, for example a Pub/Sub topic. More destination types may be supported in the future.
  • Added support for creating subscriptions initialized to a target location within the message backlog. A seek is performed for publish and event timestamps.

@tmdiep tmdiep requested review from a team and shollyman as code owners October 18, 2022 12:55
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: pubsublite Issues related to the Pub/Sub Lite API. labels Oct 18, 2022
@tmdiep tmdiep requested a review from codyoss October 18, 2022 12:55
@tmdiep
Copy link
Contributor Author

tmdiep commented Oct 18, 2022

@codyoss Can you please review the API surface changes in pubsublite/config.go and pubsublite/admin.go. Thanks!

@tmdiep tmdiep added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 19, 2022
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

Just a couple comments on the surface -- don't consider any of them blocking.

pubsublite/admin.go Show resolved Hide resolved
pubsublite/config.go Outdated Show resolved Hide resolved
pubsublite/config.go Outdated Show resolved Hide resolved
@@ -211,6 +212,121 @@ func (tc *TopicConfigToUpdate) toUpdateRequest() *pb.UpdateTopicRequest {
}
}

// ExportDestinationConfig is the configuration for exporting to a destination.
// Implemented by *PubSubConfig.
type ExportDestinationConfig interface {
Copy link
Member

Choose a reason for hiding this comment

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

How many of these do you anticipate? Could this just be a config struct instead of having the extra indirection?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't predict how many, but there may be several in the future, hence the oneof-like representation.

@product-auto-label product-auto-label bot added the stale: old Pull request is old and needs attention. label Nov 18, 2022
@tmdiep tmdiep removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 9, 2022
@tmdiep tmdiep added the automerge Merge the pull request once unit tests and other checks pass. label Dec 10, 2022
@tmdiep tmdiep merged commit 5fa8555 into googleapis:main Dec 10, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 10, 2022
@tmdiep tmdiep deleted the export_subscriptions branch December 10, 2022 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsublite Issues related to the Pub/Sub Lite API. size: l Pull request size is large. stale: old Pull request is old and needs attention.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants