-
Notifications
You must be signed in to change notification settings - Fork 105
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
Update health.proto to add objc prefix #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markdroth thanks for cc'ing!
LGTM. But @HannahShiSFB Could you also help take a look please? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change! I'll approve first :)
@HannahShiSFB if there's any concerns please let me know afterwards :)
I'm not familiar with it, would you clarify why the change and what will be affected? |
Thanks! The prefix is needed so that I can call the health check from ios grpc clients.
|
I assume that this change affects the generated code in objc. I just want to make sure this isn't a breaking change and isn't going to cause any problems later. @HannahShiSFB or @sampajano, please confirm that you've verified that that is the case. |
If it helps, I need this to add the |
@markdroth Thanks for checking! Yes indeed this would affect generated code. And if there are existing users on this proto they'd need to update the callsites AFAIU. @charlottetan Could you explain what error you'd see without this change? I'm wondering if this is the only / best way to address your issue, and whether there are solutions that might not involve breaking existing callers.. @HannahShiSFB FYI. |
Thanks @sampajano, the error I'm getting is: I get this when I try to do: |
If the objc codegen won't work at all without this option, then it seems like it can't break anyone to add it. Are we sure that this option is required for objc code generation even in OSS? |
It seems that way, I'm happy to validate it a different way or try something else but need help figuring out how |
My last question was aimed at @sampajano, who is our expert on the objc ecosystem. :) |
The namespace should really be more precise than gRPC. We assume the proto package is the namespace so are free to reuse message names across packages. At the very least, if we had a v2 proto, we'd want to add 2 or v2 to the namespace, and GRPCV2 has a vastly different meaning than grpc.health.v2. (Looking at the googleapis repo, I do see that objc namespaces are typically extremely abbreviated. But they still handle v2.) |
I updated it to |
@markdroth Yeah i think you're right.. I believe objc code won't be generated at all without
@ejona86 Thanks for bringing this up! It does look like all the other language namespaces are more specific than Maybe we should name this one @charlottetan How does that sound to you? |
SGTM, thanks! Updated to |
@charlottetan Thanks for the QUICK update! :) LGTM :) |
Thanks! I don't have merge permissions, I'll have to rely on someone else to merge it in. |
No description provided.