Skip to content

Add feature: remove spare network url#41728

Closed
xibolun wants to merge 1 commit into
moby:masterfrom
xibolun:bugfix
Closed

Add feature: remove spare network url#41728
xibolun wants to merge 1 commit into
moby:masterfrom
xibolun:bugfix

Conversation

@xibolun

@xibolun xibolun commented Nov 30, 2020

Copy link
Copy Markdown

- What I did

it may be a mistake at api/server/router/network/network.go; there is a spare network url;

/networks
/networks/

- How I did it

remove the url of /networks/

- How to verify it

- Description for the changelog
remove spare network url

- A picture of a cute animal (not mandatory but encouraged)

^ ^

@thaJeztah thaJeztah left a comment

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.

Thanks for contributing; I don't think this should be removed (see my comment inline)

r.routes = []router.Route{
// GET
router.NewGetRoute("/networks", r.getNetworksList),
router.NewGetRoute("/networks/", r.getNetworksList),

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.

I don't think this one should be removed; this was added to address #24595 (in #24634).

I do see I didn't add a regression test in that PR; let me open a PR for that

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ok, i get it ;

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.

What I usually do in these cases, is using the "git blame" view on GitHub to see what commit changed the line, for example, in this case: https://github.com/moby/moby/blame/b9a3a51ac562b40f658645db1a34bedb894edddf/api/server/router/network/network.go#L33

From that, you can see the commit details 6ad4bf0, which describes why the change was made, and also has a link to the pull request related to it;

Screenshot 2020-11-30 at 12 59 25

@thaJeztah

Copy link
Copy Markdown
Member

Opened #41729 to add a test

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.

2 participants