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

Expose MethodDescriptor's public methods #1160

Merged
merged 6 commits into from
Nov 19, 2021
Merged

Conversation

tomferreira
Copy link
Contributor

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

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 3, 2021

CLA Signed

The committers are authorized under a signed CLA.

Copy link
Collaborator

@sampajano sampajano left a comment

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 :))

Copy link
Collaborator

@stanley-cheung stanley-cheung left a comment

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.

packages/grpc-web/externs.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@sampajano sampajano left a comment

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
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.

None yet

4 participants