Skip to content

fix(pubsub): allow clearing of topic schema#7980

Merged
hongalex merged 3 commits into
googleapis:mainfrom
hongalex:fix-clear-schema
May 24, 2023
Merged

fix(pubsub): allow clearing of topic schema#7980
hongalex merged 3 commits into
googleapis:mainfrom
hongalex:fix-clear-schema

Conversation

@hongalex

@hongalex hongalex commented May 23, 2023

Copy link
Copy Markdown
Member

Fix a bug that prevents clearing of topic schema because a zero valued SchemaSetting was being passed rather than a nil value one.

In addition, fix a bug with the fake that makes setting the schema_settings field mask mean changing the entire SchemaSetting, rather than just accounting for clearing. This makes it consistent with https://google.aip.dev/161#specifying-specific-fields

Fixes #7979

@hongalex hongalex requested review from a team May 23, 2023 19:51
@hongalex hongalex requested a review from shollyman as a code owner May 23, 2023 19:51
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: pubsub Issues related to the Pub/Sub API. labels May 23, 2023
@saurav1991

Copy link
Copy Markdown

Can this please be merged and released as its impacting our production workflows?

@hongalex hongalex merged commit 46fc060 into googleapis:main May 24, 2023
@hongalex hongalex deleted the fix-clear-schema branch May 24, 2023 16:33
@hongalex

Copy link
Copy Markdown
Member Author

@saurav1991 Thanks for your patience, released in pubsub 1.31.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pubsub: Unable to update or clear SchemaSettings

3 participants