Skip to content

Conversation

@abedatahub
Copy link
Collaborator

@abedatahub abedatahub commented Oct 1, 2025

Fixed extension registry initialization for MESSAGE-type extensions by using
DynamicMessage.getDefaultInstance(FieldDescriptor) instead of
FieldDescriptorProto.getDefaultInstanceForType(). The latter would simply
get a default instance of a FieldDesriptorProto message, clearly not our
intention.

Added test coverage for MESSAGE-type extensions using messageF.proto, which
exercises the case where extension values are message types rather than
primitives or enums.

Verified that this fixes the customer issue by running the datahub-protobuf
CLI against the files provided in https://acrylsupport.zendesk.com/agent/tickets/4845

🤖 Generated with Claude Code

@github-actions github-actions bot added ingestion PR or Issue related to the ingestion of metadata community-contribution PR or Issue raised by member(s) of DataHub Community labels Oct 1, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Oct 1, 2025
@abedatahub abedatahub force-pushed the abe--fix-proto-to-datahub-CUS-5782 branch from fede1dd to 00a4702 Compare October 1, 2025 15:59
Fixed extension registry initialization for MESSAGE-type extensions by using
DynamicMessage.getDefaultInstance(FieldDescriptor) instead of
FieldDescriptorProto.getDefaultInstanceForType(). The latter would simply
get a default instance of a FieldDesriptorProto message, clearly not our
intention.

Added test coverage for MESSAGE-type extensions using messageF.proto, which
exercises the case where extension values are message types rather than
primitives or enums.

Verified that this fixes the customer issue by running the datahub-protobuf
CLI against the files provided in https://acrylsupport.zendesk.com/agent/tickets/4845

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@abedatahub abedatahub force-pushed the abe--fix-proto-to-datahub-CUS-5782 branch from 00a4702 to da24f4f Compare October 1, 2025 16:20
@abedatahub abedatahub self-assigned this Oct 1, 2025
@codecov
Copy link

codecov bot commented Oct 1, 2025

Bundle Report

Bundle size has no change ✅

@codecov
Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@datahub-cyborg datahub-cyborg bot added merge-pending-ci A PR that has passed review and should be merged once CI is green. and removed needs-review Label for PRs that need review from a maintainer. labels Oct 1, 2025
@abedatahub abedatahub merged commit 0f5d5fd into master Oct 1, 2025
39 checks passed
@abedatahub abedatahub deleted the abe--fix-proto-to-datahub-CUS-5782 branch October 1, 2025 19:41
yoonhyejin pushed a commit that referenced this pull request Oct 9, 2025
alplatonov pushed a commit to alplatonov/datahub that referenced this pull request Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community ingestion PR or Issue related to the ingestion of metadata merge-pending-ci A PR that has passed review and should be merged once CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants