Skip to content

Conversation

rayokota
Copy link
Member

Fix Protobuf field transform to use schema from SR. Previously the code was using the schema from the local Proto registry instead of from SR.

@rayokota rayokota requested review from a team as code owners October 31, 2024 22:39
@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.


async toFileDesc(client: Client, info: SchemaInfo): Promise<DescFile> {
const value = this.schemaToDescCache.get(stringify(info.schema))
if (value != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could just be if (value)

Copy link
Member Author

@rayokota rayokota Nov 1, 2024

Choose a reason for hiding this comment

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

Thanks, I think I'll leave it as is since the code prefers explicit checks in lots of places and I'd rather not change them all.

Copy link
Contributor

@Claimundefine Claimundefine left a comment

Choose a reason for hiding this comment

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

LGTM

@rayokota rayokota merged commit ea9513e into master Nov 1, 2024
2 checks passed
@rayokota rayokota deleted the fix-proto-registry branch November 1, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants