Skip to content
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

Optimizing the interface of RestServer and RestClient #460

Merged
merged 14 commits into from
Apr 7, 2020

Conversation

Patrick0308
Copy link
Contributor

@Patrick0308 Patrick0308 commented Mar 31, 2020

What this PR does:
To define RestServerRequest and RestServerResponse, make it very easy for users to implement RestServer interface.

@codecov-io
Copy link

codecov-io commented Mar 31, 2020

Codecov Report

Merging #460 into develop will decrease coverage by 0.06%.
The diff coverage is 81.25%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #460      +/-   ##
===========================================
- Coverage    66.83%   66.76%   -0.07%     
===========================================
  Files          177      177              
  Lines         9359     9368       +9     
===========================================
  Hits          6255     6255              
- Misses        2487     2495       +8     
- Partials       617      618       +1     
Impacted Files Coverage Δ
protocol/rest/rest_invoker.go 72.88% <78.57%> (+0.33%) ⬆️
protocol/rest/rest_protocol.go 75.67% <100.00%> (+0.33%) ⬆️
config_center/nacos/facade.go 37.50% <0.00%> (-25.00%) ⬇️
config_center/nacos/client.go 55.55% <0.00%> (-1.71%) ⬇️
remoting/kubernetes/listener.go 56.07% <0.00%> (ø)
remoting/kubernetes/watch.go 79.24% <0.00%> (+0.94%) ⬆️
protocol/dubbo/client.go 69.09% <0.00%> (+1.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c0afbe...7a5b916. Read the comment docs.

@Patrick0308 Patrick0308 changed the title Optimizing RestServer interface Optimizing the interface of RestServer and RestClient Apr 1, 2020
protocol/rest/server/rest_server.go Show resolved Hide resolved
protocol/rest/server/rest_server.go Show resolved Hide resolved
protocol/rest/server/rest_server.go Show resolved Hide resolved
protocol/rest/server/rest_server.go Outdated Show resolved Hide resolved
protocol/rest/server/rest_server.go Show resolved Hide resolved
protocol/rest/client/client_impl/resty_client.go Outdated Show resolved Hide resolved
protocol/rest/client/rest_client.go Outdated Show resolved Hide resolved
protocol/rest/client/rest_client.go Outdated Show resolved Hide resolved
protocol/rest/client/rest_client.go Outdated Show resolved Hide resolved
protocol/rest/server/rest_server.go Outdated Show resolved Hide resolved
protocol/rest/server/rest_server.go Outdated Show resolved Hide resolved
protocol/rest/server/rest_server.go Outdated Show resolved Hide resolved
protocol/rest/server/rest_server.go Show resolved Hide resolved
protocol/rest/server/server_impl/go_restful_server.go Outdated Show resolved Hide resolved
protocol/rest/server/server_impl/go_restful_server.go Outdated Show resolved Hide resolved
Copy link
Member

@flycash flycash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the comments should start with the method name.

protocol/rest/server/rest_server.go Show resolved Hide resolved
protocol/rest/server/rest_server.go Outdated Show resolved Hide resolved
Copy link
Member

@zouyx zouyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you retest rest samples in dubbo-samples ? @Patrick0308

Copy link
Contributor

@fangyincheng fangyincheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Patrick0308
Copy link
Contributor Author

I remove the category of consumer's url. It test ok.

@flycash flycash merged commit 7ab3493 into apache:develop Apr 7, 2020
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 66.93%. Comparing base (6c0afbe) to head (57c58d8).

Files with missing lines Patch % Lines
protocol/rest/rest_invoker.go 78.57% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #460      +/-   ##
===========================================
+ Coverage    66.83%   66.93%   +0.10%     
===========================================
  Files          177      177              
  Lines         9359     9367       +8     
===========================================
+ Hits          6255     6270      +15     
+ Misses        2487     2479       -8     
- Partials       617      618       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants