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

fix: handle unresolvable lro response types AIP-133 and AIP-233 #980

Merged
merged 7 commits into from
Jun 16, 2022

Conversation

noahdietz
Copy link
Collaborator

Fixes #978 for both AIP-233 and AIP-133.

Also adds some helpers for getting the ResponseType and MetadataType from the OperationInfo.

Unfortunately, the protoreflect library used in this project does not handle the nil receiver case on proto descriptors like protobuf-go does (i.e. if a descriptor being used as a receiver is nil, the method will return the default unset value for the field being accessed).

@noahdietz noahdietz requested a review from a team June 8, 2022 22:39
@noahdietz noahdietz requested a review from shwoodard June 13, 2022 15:52
rules/internal/utils/extension_test.go Outdated Show resolved Hide resolved
rules/internal/utils/extension_test.go Outdated Show resolved Hide resolved
rules/internal/utils/extension_test.go Outdated Show resolved Hide resolved
rules/internal/utils/extension_test.go Outdated Show resolved Hide resolved
rules/internal/utils/extension_test.go Outdated Show resolved Hide resolved
@noahdietz noahdietz requested a review from shwoodard June 16, 2022 22:10
@noahdietz noahdietz merged commit bbb743a into googleapis:main Jun 16, 2022
@noahdietz noahdietz deleted the fix-unresolvable branch June 16, 2022 22:29
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.

AIP-233: resource-reference-type OnlyIf hits nil pointer if response_type is unresolved
2 participants