-
Notifications
You must be signed in to change notification settings - Fork 949
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
feature: add resize interface #879
feature: add resize interface #879
Conversation
@@ -2447,6 +2470,15 @@ definitions: | |||
additionalProperties: | |||
type: "string" | |||
|
|||
ResizeOptions: |
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.
If this is only used in daemon side, I do not think we should list this in swagger.yml.
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.
No, this struct is used by both
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.
I see. I found that you are not using this ResizeOptions
to communicate between client side and daemon side. You indeed use ResizeOptions
in package client, but when sending request, you split this struct into two separate parameters:
query.Set("h", strconv.Itoa(int(opts.Height)))
query.Set("w", strconv.Itoa(int(opts.Width)))
So in daemon side, you use both two parameters above to construct this struct ResizeOptions
again.
I am afraid that the way is not the same as other struct used by both client and daemon side.
Correct me if I missed something, please.
Since #881 has been merged, please rebase to the latest branch and push back again. Thanks. @HusterWan |
504dacd
to
f771d03
Compare
ping @HusterWan
Log is as follow.
|
@sunyuan3 thanks a lot, i will fix soon |
f771d03
to
af05c15
Compare
Codecov Report
@@ Coverage Diff @@
## master #879 +/- ##
==========================================
- Coverage 14% 13.98% -0.02%
==========================================
Files 119 119
Lines 7477 7486 +9
==========================================
Hits 1047 1047
- Misses 6341 6350 +9
Partials 89 89
Continue to review full report at Codecov.
|
apis/swagger.yml
Outdated
responses: | ||
200: | ||
description: "no error" | ||
404: |
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.
You returned 400(StatusBadRequest), and I am afraid you should add this in your swagger.yml to keep consistent.
af05c15
to
382bb00
Compare
382bb00
to
17546d5
Compare
17546d5
to
7383215
Compare
Signed-off-by: Michael Wan <zirenwan@gmail.com>
7383215
to
b9fb5eb
Compare
LGTM |
Signed-off-by: Michael Wan zirenwan@gmail.com
Ⅰ. Describe what this PR did
add a resize interface for pouch
Ⅱ. Does this pull request fix one issue?
fixes #866
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews