-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Reworked PR #739 (multiple tags) #835
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #835 +/- ##
==========================================
+ Coverage 71.75% 71.82% +0.06%
==========================================
Files 306 306
Lines 6596 6629 +33
Branches 486 497 +11
==========================================
+ Hits 4733 4761 +28
- Misses 1577 1579 +2
- Partials 286 289 +3
Continue to review full report at Codecov.
|
|
Reviewed 7 of 7 files at r1. Comments from Reviewable |
| webTarget = webTarget.queryParam("t", command.getTag()); | ||
|
|
||
| if (command.getTags() != null && !command.getTags().isEmpty()) { | ||
| webTarget = webTarget.queryParam("t", command.getTags()); |
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.
should be:
webTarget = webTarget.queryParamSet("t", command.getTags());| if (command.getTags() != null && !command.getTags().isEmpty()) { | ||
| webTarget = webTarget.queryParam("t", command.getTags()); | ||
| } else if (command.getTags() != null) { | ||
| webTarget = webTarget.queryParamsSet("t", command.getTags()); |
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.
should be:
webTarget = webTarget.queryParam("t", command.getTag());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.
damn git conflict
|
@orzeh please review again |
Several tags for image can be defined by calling multiple time withTag() method of BuildImageCmd. In Netty implementation, the WebTarget class is modified to support several query parameteres with the same name. Fix docker-java#720
|
@KostyaSha LGTM 👍 |
| if (command.getTags() != null && !command.getTags().isEmpty()) { | ||
| webTarget = webTarget.queryParamsSet("t", command.getTags()); | ||
| } else if (isNotBlank(command.getTag())) { | ||
| webTarget = webTarget.queryParam("t", command.getTags()); |
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.
!
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.
O_o
Reworked PR docker-java#739 (multiple tags)
reworked #739
@orzeh please review
This change is