Skip to content

bug: searching for method names incorrectly when there's an acronym #570

@sofisl

Description

@sofisl
  1. gRPC reads proto definitions and generates an object that, for each rpc in the proto definition, defines a method that would call that RPC for
  2. so if your proto has rpc SomeFunc(Request) returns (Response), and you pass this proto to gRPC, it will return an object (that we call a stub) that would have stub["someFunc"], note the camelCase
  3. When stubs are generated for methods that have an acronym in them, they get generated like such: createOsPolicyAssignment, but the generated code looks for the method name createOSPolicyAssignment

We need to make sure we're looking for the right method name.

See: googleapis/nodejs-os-config#173

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions