Deprecate /containers/(id or name)/copy endpoint#22149
Deprecate /containers/(id or name)/copy endpoint#22149vdemeester merged 1 commit intomoby:masterfrom
Conversation
api/server/router/container/copy.go
Outdated
There was a problem hiding this comment.
Not sure this is the right error — as discussed a little bit with @thaJeztah, a simple HTTP 404 error should be fine.
|
In general, SGTM, we can discuss the implementation, and we need to have a note in the API changelog |
96a36d8 to
17e6819
Compare
api/server/router/container/copy.go
Outdated
There was a problem hiding this comment.
I probably should add a comment here (instead of in api/server/router/container/container.go
211b278 to
e3d9b60
Compare
|
moved this to code review; can you update the comment and documentation? |
e3d9b60 to
62fc0ce
Compare
|
Updated 👼 |
62fc0ce to
52f1d53
Compare
52f1d53 to
1cbf51a
Compare
|
LGTM, don't forget to remove it from the API docs; https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.24.md#copy-files-or-folders-from-a-container |
1cbf51a to
6b01d44
Compare
|
@thaJeztah ahh good point 😊 Updated 👼 |
|
LGTM (code and docs) |
|
ping @vdemeester sorry, this needs a rebase 😢 |
2e46a3e to
e452ebc
Compare
|
oh! actually, can you add an entry to the "deprecated features" page? This endpoint was deprecated before we had that document, so I think we should add a mention there. Also just discussing with @justincormack that we should have a deprecation policy for old API version (how many versions should we support?) otherwise removing these endpoints won't bring us much, because we still have to maintain it if we keep the old API versions |
|
@thaJeztah ok 😝 and completely agree with the depreciation policy 😇 |
This endpoint has been deprecated since 1.8. Return an error starting from this API version (1.24) in order to make sure it's not used for the next API version and so that we can remove it some times later. Signed-off-by: Vincent Demeester <[email protected]>
e452ebc to
4283289
Compare
|
ping @justincormack @calavera PTAL |
|
LGTM |
|
Author docs LGTM 😝 |
`/containers/<name>/copy` endpoint was deprecated in 1.8 and errors since 1.12. See moby#22149 for more info. Signed-off-by: Roman Volosatovs <[email protected]>
`/containers/<name>/copy` endpoint was deprecated in 1.8 and errors since 1.12. See moby/moby#22149 for more info. Signed-off-by: Roman Volosatovs <[email protected]> Upstream-commit: a34d804572882e2251de7769efd075886c76ea10 Component: engine
`/containers/<name>/copy` endpoint was deprecated in 1.8 and errors since 1.12. See moby#22149 for more info. Signed-off-by: Roman Volosatovs <[email protected]> (cherry picked from commit a34d804) Signed-off-by: Cory Snider <[email protected]>
This endpoint has been deprecated since 1.8. Return an error starting from this API version (1.24) in order to make sure it's not used for the next API version and so that we can remove it some times later 🐮.
This is probably the cleanest and simple way to handle that.
🐸
Signed-off-by: Vincent Demeester [email protected]