-
Notifications
You must be signed in to change notification settings - Fork 21
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
proto: rename GetIDs to GetIds #51
Conversation
WalkthroughThe modifications involve standardizing the naming convention for the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
==========================================
+ Coverage 75.54% 79.55% +4.00%
==========================================
Files 5 5
Lines 274 225 -49
==========================================
- Hits 207 179 -28
+ Misses 52 33 -19
+ Partials 15 13 -2 ☔ View full report in Codecov by Sentry. |
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.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files ignored due to path filters (1)
types/pb/da/da.pb.go
is excluded by:!**/*.pb.go
Files selected for processing (3)
- proto/da/da.proto (2 hunks)
- proxy/client.go (1 hunks)
- proxy/server.go (1 hunks)
Additional comments: 2
proto/da/da.proto (2)
- 12-13: The RPC method
GetIds
has been correctly renamed fromGetIDs
, aligning with the PR objectives to improve naming convention consistency. This change is consistent and correctly implemented in theDAService
service definition.- 73-80: The message types
GetIdsRequest
andGetIdsResponse
have been correctly renamed and defined, aligning with the renaming of theGetIds
RPC method. These changes are consistent and correctly implemented, ensuring compatibility and consistency in naming conventions across different programming languages and tools.
c5a2e14
to
ae2e1fa
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
types/pb/da/da.pb.go
is excluded by!**/*.pb.go
Files selected for processing (3)
- proto/da/da.proto (2 hunks)
- proxy/grpc/client.go (1 hunks)
- proxy/grpc/server.go (1 hunks)
Files skipped from review due to trivial changes (3)
- proto/da/da.proto
- proxy/grpc/client.go
- proxy/grpc/server.go
This changeset renames proto's GetIDs to GetIds.
The motivation behind this change lies in the fact, that protobuf (unlike the go part of the codebase) is a language agnostic tool: it generates concrete definitions in the target languages given a common .proto definition.
As such, it needs a way to convert between case conventions, automatically. Abbreviations and acronyms such as ID, HTTP or URL is a big contention point. Go seems to prefer URL. Java Url.
I have no intention here to wage holy war either one way or another.
Just want to point out that treating an abbrevation/acronym as a word plays nicely with
simple algorithms that convert between case conventions automatically. snake_case conversion makes a good example:
GetIDs -> get_i_ds
This is what you get in rust with tonic (no option to override there).
I can live with that of course, feel free to close this PR.
Also, I realize that this is a breaking change and may be not desirable. As such, feel free to close this PR or leave it dangling until the next time to change the proto comes.
Summary by CodeRabbit
Summary by CodeRabbit
GetIDs
toGetIds
and corresponding request/response names to enhance readability and maintain best practices.