Skip to content

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/[email protected]#SliceValue

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@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