Skip to content

Conversation

@thaJeztah
Copy link
Member

The GetSlice() function is part of cobra's cobra.SliceValue interface,
and duplicates the older GetAll() method. This patch changes our use
of the GetAll() method with the intent to deprecated it in future.

- Human readable description for the release notes

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

@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code 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

Attention: Patch coverage is 94.36620% with 4 lines in your changes missing coverage. Please review.

Project coverage is 58.91%. Comparing base (81a5db6) to head (22a5736).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6031   +/-   ##
=======================================
  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 changes our use
of the `GetAll()` method with the intent to deprecated it in future.

[cobra.SliceValue]: https://pkg.go.dev/github.com/spf13/[email protected]#SliceValue

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah marked this pull request as ready for review April 23, 2025 11:52
@thaJeztah thaJeztah requested a review from robmry April 23, 2025 11:52
@thaJeztah
Copy link
Member Author

cc @robmry (I kept this one and #6032 separate, mostly to not distract from the first changes around the completion)

@thaJeztah thaJeztah merged commit ca19957 into docker:master Apr 23, 2025
87 checks passed
@thaJeztah thaJeztah deleted the change_flag_uses branch April 23, 2025 12:31
@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

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants