Skip to content

Import DisplayablePorts from moby/moby source#236

Merged
dnephin merged 1 commit intodocker:masterfrom
vdemeester:import-displayable-ports-from-moby
Jun 23, 2017
Merged

Import DisplayablePorts from moby/moby source#236
dnephin merged 1 commit intodocker:masterfrom
vdemeester:import-displayable-ports-from-moby

Conversation

@vdemeester
Copy link
Copy Markdown
Collaborator

@vdemeester vdemeester commented Jun 23, 2017

This has nothing to do in the api package for moby as it's just a
cli display function.

Related PR in moby/moby: moby/moby#33798

Signed-off-by: Vincent Demeester [email protected]

@thaJeztah
Copy link
Copy Markdown
Member

Looks like CI (lint) isn't happy;

cli/command/formatter/container_test.go:649::warning: line is 216 characters (lll)
cli/command/formatter/container_test.go:649::warning: line is 216 characters (lll)
cli/command/formatter/container_test.go:649::warning: line is 216 characters (lll)
Exited with code 1

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

one nit, but LGTM otherwise

Comment thread cli/command/formatter/container.go Outdated
"strings"
"time"

"sort"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this should move up?

Comment thread cli/command/formatter/container_test.go Outdated

for _, port := range cases {
actual := DisplayablePorts(port.ports)
if port.expected != actual {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

assert.Equal()

Comment thread cli/command/formatter/container_test.go Outdated
expected string
}

// DisplayablePorts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment can probably be removed 😄

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oh lol, I just copied it, yeah it can :D

@vdemeester vdemeester force-pushed the import-displayable-ports-from-moby branch from 0739f38 to f1c953c Compare June 23, 2017 17:38
@vdemeester
Copy link
Copy Markdown
Collaborator Author

Updated, should be fixed 👼

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jun 23, 2017

Codecov Report

Merging #236 into master will increase coverage by 0.25%.
The diff coverage is 96.42%.

@@            Coverage Diff             @@
##           master     #236      +/-   ##
==========================================
+ Coverage   46.96%   47.21%   +0.25%     
==========================================
  Files         171      171              
  Lines       11501    11552      +51     
==========================================
+ Hits         5401     5454      +53     
+ Misses       5790     5787       -3     
- Partials      310      311       +1

@vdemeester vdemeester force-pushed the import-displayable-ports-from-moby branch from f1c953c to 5dc31fb Compare June 23, 2017 17:39
Comment thread cli/command/formatter/container_test.go Outdated
"github.com/stretchr/testify/require"
)

// nolint: lllf
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lllf?

Is this on the wrong function? It used to pass.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ah dang it.. it's a typo on my part after running the lint 😱

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oh right 😛 Updated :)

@vdemeester vdemeester force-pushed the import-displayable-ports-from-moby branch from 5dc31fb to eabff39 Compare June 23, 2017 18:05
@thaJeztah
Copy link
Copy Markdown
Member

This has nothing to do in the `api` package for moby as it's just a
cli display function.

Signed-off-by: Vincent Demeester <[email protected]>
@vdemeester vdemeester force-pushed the import-displayable-ports-from-moby branch from eabff39 to 9e142ca Compare June 23, 2017 18:12
@vdemeester
Copy link
Copy Markdown
Collaborator Author

@thaJeztah oups, done 🎐

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Copy Markdown
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

LGTM

@dnephin dnephin merged commit 8b6196d into docker:master Jun 23, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.07.0 milestone Jun 23, 2017
@vdemeester vdemeester deleted the import-displayable-ports-from-moby branch June 23, 2017 19:02
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jul 2, 2017
Includes changes from;

- Fix handling of remote "git@" notation (moby/moby#33696)
- Move some `api` package functions away moby/moby#33798 (related to docker#236)
- Update go-connections dependency moby/moby#33814 (already vendored in docker#238)
- Set ping version even on error (moby/moby#33827)
- Do not add duplicate platform information to service spec (moby/moby#33867)
- Refactor MountPoint Setup function in volume.go (moby/moby#33890)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jul 2, 2017
Includes changes from;

- Add a LastTagTime for images (moby/moby#31497)
- Fix handling of remote "git@" notation (moby/moby#33696)
- Move some `api` package functions away (moby/moby#33798) (related to docker#236)
- Set ping version even on error (moby/moby#33827)
- Do not add duplicate platform information to service spec (moby/moby#33867)
- Refactor MountPoint Setup function in volume.go (moby/moby#33890)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jul 3, 2017
Includes changes from;

- Add a LastTagTime for images (moby/moby#31497)
- Fix handling of remote "git@" notation (moby/moby#33696)
- Move some `api` package functions away (moby/moby#33798) (related to docker#236)
- Set ping version even on error (moby/moby#33827)
- Do not add duplicate platform information to service spec (moby/moby#33867)
- Refactor MountPoint Setup function in volume.go (moby/moby#33890)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jul 5, 2017
Includes changes from;

- Add a LastTagTime for images (moby/moby#31497)
- Fix handling of remote "git@" notation (moby/moby#33696)
- Move some `api` package functions away (moby/moby#33798) (related to docker#236)
- Set ping version even on error (moby/moby#33827)
- Do not add duplicate platform information to service spec (moby/moby#33867)
- Refactor MountPoint Setup function in volume.go (moby/moby#33890)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
andrewhsu pushed a commit to docker-archive/docker-ce that referenced this pull request Jul 14, 2017
Includes changes from;

- Add a LastTagTime for images (moby/moby#31497)
- Fix handling of remote "git@" notation (moby/moby#33696)
- Move some `api` package functions away (moby/moby#33798) (related to docker/cli#236)
- Set ping version even on error (moby/moby#33827)
- Do not add duplicate platform information to service spec (moby/moby#33867)
- Refactor MountPoint Setup function in volume.go (moby/moby#33890)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Upstream-commit: 366d3ec971d8007c667e8d7dc8e35a346fb19539
Component: cli
alshabib pushed a commit to alshabib/cli that referenced this pull request Aug 1, 2017
Includes changes from;

- Add a LastTagTime for images (moby/moby#31497)
- Fix handling of remote "git@" notation (moby/moby#33696)
- Move some `api` package functions away (moby/moby#33798) (related to docker#236)
- Set ping version even on error (moby/moby#33827)
- Do not add duplicate platform information to service spec (moby/moby#33867)
- Refactor MountPoint Setup function in volume.go (moby/moby#33890)

Signed-off-by: Sebastiaan van Stijn <[email protected]>
nobiit pushed a commit to nobidev/docker-cli that referenced this pull request Nov 19, 2025
…nfigs-idempotence

[17.09] sort secrets and configs to ensure idempotence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants