Skip to content

Expose MethodDescriptor's public methods - #1160

Merged
sampajano merged 6 commits into
grpc:masterfrom
tomferreira:master
Nov 19, 2021
Merged

Expose MethodDescriptor's public methods#1160
sampajano merged 6 commits into
grpc:masterfrom
tomferreira:master

Conversation

@tomferreira

Copy link
Copy Markdown
Contributor

Expose the public methods of the MethodDescriptor class to be used in a mock implementation proposal of interceptor.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 3, 2021

Copy link
Copy Markdown

CLA Signed

The committers are authorized under a signed CLA.

@sampajano sampajano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the contrib! :)

This in principle is fine with me. I'm a bit surprised that these aren't exported already given it's already in the TS interface.

@stanley-cheung would probably have more context here so i'll wait for his review :)

(BTW you need to finish the CLA process for this PR to be merge-able :))

@stanley-cheung stanley-cheung left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This LGTM. Yea MethodDescriptor should be part of the public API.

Comment thread packages/grpc-web/externs.js Outdated

@sampajano sampajano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks again for the change! :)

@sampajano
sampajano merged commit 97baed4 into grpc:master Nov 19, 2021
@sampajano

Copy link
Copy Markdown
Collaborator

Hi @tomferreira.. Unfortunately i have to rollback this PR because after merging this change it's causing some non-trivial code size increases for some internal Google products.. Apologize for the inconveniences.. 😅

I think maybe there are some ways to expose these APIs ONLY for Github. But I'm not totally sure yet. Ideas are welcome too.. 😃

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants