-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(bigtable): add change stream config to create and update table #8180
Conversation
4e90fa3
to
afdc75c
Compare
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
afdc75c
to
d340616
Compare
@@ -269,6 +276,10 @@ func (ac *AdminClient) CreateTableFromConf(ctx context.Context, conf *TableConf) | |||
} else if conf.DeletionProtection == Unprotected { | |||
tbl.DeletionProtection = false | |||
} | |||
if conf.ChangeStreamRetention != nil && conf.ChangeStreamRetention.(time.Duration) != 0 { |
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.
Do we need to check the retention is between 1 and 7?
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.
Seems like we should leave that up to server side validation https://google.aip.dev/client-libraries/4223
} | ||
|
||
// UpdateTableWithChangeStream updates a table to with the given table ID and change stream config. | ||
func (ac *AdminClient) UpdateTableWithChangeStream(ctx context.Context, tableID string, changeStreamRetention ChangeStreamRetention) error { |
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.
Same here, do we need to check the retention is between 1 and 7?
d340616
to
c5a7d45
Compare
🤖 I have created a release *beep* *boop* --- ## [1.19.0](https://togithub.com/googleapis/google-cloud-go/compare/bigtable/v1.18.1...bigtable/v1.19.0) (2023-07-06) ### Features * **bigtable:** Add change stream config to create and update table ([#8180](https://togithub.com/googleapis/google-cloud-go/issues/8180)) ([32897ce](https://togithub.com/googleapis/google-cloud-go/commit/32897cec9be7413fa09b403199980e782ae52107)) * **bigtable:** Update all direct dependencies ([b340d03](https://togithub.com/googleapis/google-cloud-go/commit/b340d030f2b52a4ce48846ce63984b28583abde6)) * **bigtable:** Update iam and longrunning deps ([91a1f78](https://togithub.com/googleapis/google-cloud-go/commit/91a1f784a109da70f63b96414bba8a9b4254cddd)) ### Bug Fixes * **bigtable:** REST query UpdateMask bug ([df52820](https://togithub.com/googleapis/google-cloud-go/commit/df52820b0e7721954809a8aa8700b93c5662dc9b)) * **bigtable:** Update grpc to v1.55.0 ([1147ce0](https://togithub.com/googleapis/google-cloud-go/commit/1147ce02a990276ca4f8ab7a1ab65c14da4450ef)) * **bigtable:** Use fieldmask directly instead of field_mask genproto alias ([#8032](https://togithub.com/googleapis/google-cloud-go/issues/8032)) ([cae6cd6](https://togithub.com/googleapis/google-cloud-go/commit/cae6cd6d0e09e98157879fb03fb23f718f4d2bb3)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
No description provided.