Skip to content

Expose getName() in MethodDescriptor and fix TS definitions.#1289

Merged
sampajano merged 1 commit intogrpc:masterfrom
sampajano:1.expose.methoddescriptor.getname
Sep 30, 2022
Merged

Expose getName() in MethodDescriptor and fix TS definitions.#1289
sampajano merged 1 commit intogrpc:masterfrom
sampajano:1.expose.methoddescriptor.getname

Conversation

@sampajano
Copy link
Copy Markdown
Collaborator

Backgrounds:

  1. MethodDescriptor methods were exposed to match TS definition but later removed in Revert "Expose MethodDescriptor's public methods" #1199 due to internal code size increase.
  2. getName() still seemed useful to some users per discussion in MethodDescriptor<REQ, RESP>.getName() is not a function #1285

Hence we're re-exposing only the getName() method on MethodDescriptor, hoping it won't cause a code size issue internally and also address some user needs.

@sampajano sampajano changed the title Expose getName() in MethodDescriptor and updates TS definitions to match. Expose getName() in MethodDescriptor and fix TS definitions. Sep 30, 2022
@sampajano sampajano force-pushed the 1.expose.methoddescriptor.getname branch from 2cd8610 to c1bb5dd Compare September 30, 2022 23:03
@sampajano sampajano force-pushed the 1.expose.methoddescriptor.getname branch from c1bb5dd to 451b97b Compare September 30, 2022 23:03
@sampajano sampajano merged commit 4974a7b into grpc:master Sep 30, 2022
@sampajano sampajano deleted the 1.expose.methoddescriptor.getname branch September 30, 2022 23:28
@dennycd
Copy link
Copy Markdown

dennycd commented Sep 30, 2022

lgtm

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.

3 participants