8000 opts: deprecate ListOpts.GetAll in favor of ListOpts.GetSlice by thaJeztah · Pull Request #6032 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

opts: deprecate ListOpts.GetAll in favor of ListOpts.GetSlice #6032

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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

thaJeztah
Copy link
Member
@thaJeztah thaJeztah commented Apr 23, 2025

depends on:

The GetSlice() function is part of cobra's cobra.SliceValue interface,
and duplicates the older GetAll() method. This patch deprecates the
GetAll() method in favor of GetSlice().

- Human readable description for the release notes

Go SDK: opts: deprecate `ListOpts.GetAll` in favor of `ListOpts.GetSlice`.

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

@thaJeztah thaJeztah added impact/changelog impact/deprecation status/2-code-review area/go-sdk Changes affecting the Go SDK impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Apr 23, 2025
@thaJeztah thaJeztah added this to the 28.1.2 milestone Apr 23, 2025
@codecov-commenter
Copy link
codecov-commenter commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.91%. Comparing base (ca19957) to head (5215b1e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6032   +/-   ##
=======================================
  Coverage   58.91%   58.91%           
=======================================
  Files         358      358           
  Lines       29983    29983           
=======================================
  Hits        17664    17664           
  Misses      11339    11339           
  Partials      980      980           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The `GetSlice()` function is part of cobra's [cobra.SliceValue] interface,
and duplicates the older `GetAll()` method. This patch deprecates the
`GetAll()` method in favor of `GetSlice()`.

[cobra.SliceValue]: https://pkg.go.dev/github.com/spf13/cobra@v1.9.1#SliceValue

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the deprecate_ListOpts_GetAll branch from d4fc292 to 5215b1e Compare April 23, 2025 12:31
@thaJeztah thaJeztah marked this pull request as ready for review April 23, 2025 12:32
@thaJeztah
Copy link
Member Author

Thx! Let me bring this one in 👍

@thaJeztah thaJeztah merged commit 8638cef into docker:master Apr 23, 2025
93 checks passed
@thaJeztah thaJeztah deleted the deprecate_ListOpts_GetAll branch April 23, 2025 13:56
@thaJeztah thaJeztah modified the milestones: 28.1.2, 28.2.0 May 15, 2025
@thaJeztah thaJeztah self-assigned this May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go-sdk Changes affecting the Go SDK impact/changelog impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0