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

VX-77 VX-78 VX-79 Add service restful api and testing #114

Merged
merged 4 commits into from
Jul 19, 2018

Conversation

chenyunchen
Copy link
Contributor

No description provided.

@chenyunchen chenyunchen changed the title VX-77 VX-78 VX-79 Add service restful api and testing [WIP] VX-77 VX-78 VX-79 Add service restful api and testing Jul 18, 2018
@codecov-io
Copy link

codecov-io commented Jul 18, 2018

Codecov Report

Merging #114 into develop will increase coverage by 2.06%.
The diff coverage is 76.31%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #114      +/-   ##
===========================================
+ Coverage    72.77%   74.84%   +2.06%     
===========================================
  Files           35       41       +6     
  Lines         1620     2071     +451     
===========================================
+ Hits          1179     1550     +371     
- Misses         379      446      +67     
- Partials        62       75      +13
Impacted Files Coverage Δ
src/serviceprovider/serviceprovider.go 0% <0%> (ø)
src/serviceprovider/validator.go 100% <100%> (ø)
src/server/handler_service.go 75.23% <75.23%> (ø)
src/server/route.go 53.52% <88.88%> (+5.13%) ⬆️
src/service/service.go 89.65% <89.65%> (ø)
src/utils/net.go 100% <0%> (ø)
src/utils/intersection.go 86.66% <0%> (ø)
... and 3 more

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 9b7508a...ee93876. Read the comment docs.

@chenyunchen chenyunchen changed the title [WIP] VX-77 VX-78 VX-79 Add service restful api and testing VX-77 VX-78 VX-79 Add service restful api and testing Jul 18, 2018
@chenyunchen chenyunchen force-pushed the alex/AddServiceRestfulAPI branch from 767b521 to ffa846f Compare July 18, 2018 06:38
}

func CheckServiceParameter(sp *serviceprovider.Container, service *entity.Service) error {
session := sp.Mongo.NewSession()
Copy link
Contributor

Choose a reason for hiding this comment

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

remove session

}

func CreateService(sp *serviceprovider.Container, service *entity.Service) error {
session := sp.Mongo.NewSession()
Copy link
Contributor

Choose a reason for hiding this comment

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

remove session

@John-Lin
Copy link
Contributor

想一下service 的物件有需要存到db嗎?

"github.com/linkernetworks/mongo"
"github.com/linkernetworks/vortex/src/config"
"github.com/linkernetworks/vortex/src/entity"
s "github.com/linkernetworks/vortex/src/service"
Copy link
Contributor

Choose a reason for hiding this comment

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

svc "github.com/linkernetworks/vortex/src/service"

@John-Lin John-Lin requested review from hwchiu and WakeupTsai July 19, 2018 04:57
@hwchiu hwchiu merged commit e87be4c into develop Jul 19, 2018
@hwchiu hwchiu deleted the alex/AddServiceRestfulAPI branch July 19, 2018 05:36
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
VX-77 VX-78 VX-79 Add service restful api and testing

Former-commit-id: 3d1c945efa325509fc94c3859405b69456e2e48e [formerly e87be4c]
Former-commit-id: 51e42c7051c82a15d9ba098538c2a8502868f1ef
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
VX-77 VX-78 VX-79 Add service restful api and testing

Former-commit-id: 3d1c945efa325509fc94c3859405b69456e2e48e [formerly 3d1c945efa325509fc94c3859405b69456e2e48e [formerly e87be4c]]
Former-commit-id: 51e42c7051c82a15d9ba098538c2a8502868f1ef
Former-commit-id: 4773467
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
VX-77 VX-78 VX-79 Add service restful api and testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants