Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

update api definition of /peer/heartbeat and /peer/network #1277

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

wangforthinker
Copy link
Contributor

@wangforthinker wangforthinker commented Apr 10, 2020

Signed-off-by: allen.wq [email protected]

Ⅰ. Describe what this PR did

Update the api of /peer/heartbeat and /peer/network.

Ⅱ. Does this pull request fix one issue?

NONE.

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

no.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Apr 10, 2020

Codecov Report

Merging #1277 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1277      +/-   ##
==========================================
+ Coverage   48.96%   48.97%   +0.01%     
==========================================
  Files         119      119              
  Lines        7763     7763              
==========================================
+ Hits         3801     3802       +1     
  Misses       3647     3647              
+ Partials      315      314       -1     
Impacted Files Coverage Δ
supernode/daemon/mgr/scheduler/manager.go 22.60% <0.00%> (+0.68%) ⬆️

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 7856ccd...702937c. Read the comment docs.

@wangforthinker wangforthinker force-pushed the fix/update-heart-beat-api branch from 3aad901 to 112a234 Compare April 10, 2020 09:44
@wangforthinker wangforthinker changed the title update api definition of /peer/heartbeat update api definition of /peer/heartbeat and /peer/network Apr 10, 2020
apis/swagger.yml Outdated Show resolved Hide resolved
apis/swagger.yml Outdated
in: query
required: true
description: "IP of peer."
type: "string"
Copy link
Contributor

Choose a reason for hiding this comment

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

format should be ipv4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In api defintion, paramter.types should in [string number boolean integer array], which could not set ipv4.

Copy link
Member

Choose a reason for hiding this comment

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

format: 'ipv4' if we only support ipv4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@wangforthinker wangforthinker force-pushed the fix/update-heart-beat-api branch from 112a234 to bfc8999 Compare April 13, 2020 08:49
@@ -1486,31 +1499,6 @@ definitions:
items:
$ref: "#/definitions/Node"

HeartBeatRequest:
Copy link
Contributor

Choose a reason for hiding this comment

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

If the HTTP request method could be changed into POST, please remain the HeartBeatRequest here. That could be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@wangforthinker wangforthinker force-pushed the fix/update-heart-beat-api branch from bfc8999 to 702937c Compare April 16, 2020 02:31
@pouchrobot pouchrobot added size/S and removed size/L labels Apr 16, 2020
Copy link
Member

@lowzj lowzj left a comment

Choose a reason for hiding this comment

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

LGTM

@allencloud
Copy link
Contributor

LGTM

@allencloud allencloud merged commit 9426ea9 into dragonflyoss:master Apr 16, 2020
@wangforthinker wangforthinker deleted the fix/update-heart-beat-api branch April 23, 2020 03:18
sungjunyoung pushed a commit to sungjunyoung/Dragonfly that referenced this pull request May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants