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
Allow a user choose a path when a Thrift/gRPC service has more than one path #3024
Conversation
f7412aa
to
92b7122
Compare
c27abd2
to
1cb11d4
Compare
Codecov Report
@@ Coverage Diff @@
## master #3024 +/- ##
============================================
+ Coverage 73.38% 73.41% +0.02%
- Complexity 12288 12305 +17
============================================
Files 1066 1066
Lines 47593 47634 +41
Branches 6003 6009 +6
============================================
+ Hits 34927 34969 +42
+ Misses 9617 9612 -5
- Partials 3049 3053 +4 Continue to review full report at Codecov.
|
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.
LGTM! Thanks a lot! @kojilin
core/src/main/java/com/linecorp/armeria/server/docs/DocService.java
Outdated
Show resolved
Hide resolved
...ft0.13/src/main/java/com/linecorp/armeria/internal/server/thrift/ThriftDocServicePlugin.java
Show resolved
Hide resolved
Just curious, grpc only supports |
Updated, ready for review again. I added some examples in the example project. |
6933057
to
c8268af
Compare
Could you invalidate and disable the |
also query? |
Yes. 😊 |
c8268af
to
cdd5636
Compare
Updated.
I tried to avoid changing dramatically, maybe there is a better way to achieve 1 and 2. ^^;;; |
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.
It looks like examplePaths
is used for the candidate paths for RPC services. Is this a correct approach? They are not example strictly speaking. How about exposing multiple EndpointInfo
s in a MethodInfo
instead? 🤔
I'm also thought about this and originally thought it's ok to tread RPC exact path as an example and it's not that wrong to set the default for them. So one is to let the user add an example path for RPC manually, but I think it's not intuitive. |
cdd5636
to
f8a32c4
Compare
f8a32c4
to
9a8e4f0
Compare
updated, using supported endpointInfos in methodinfo when method is rpc. |
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.
Excellent work as usual, @kojilin. Sorry for a late review. 🙇
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 again! @kojilin
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.
Thank you!
5019924
to
0ea348f
Compare
Thanks a lot, @kojilin. Would you mind updating the PR description so it reflects the changes made since the initial work? |
Make doc service can let users choose a path when RPC service has more than two paths.
Fix #2167