-
Notifications
You must be signed in to change notification settings - Fork 43
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
capability: add ListKnown, ListSupported; deprecate List #153
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kolyshkin
changed the title
capability: deprecate List, add ListKnown, ListSupported
capability: add ListKnown, ListSupported; deprecate List.
Sep 20, 2024
tianon
approved these changes
Sep 20, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👀
kolyshkin
force-pushed
the
list-enh
branch
2 times, most recently
from
September 21, 2024 02:49
e767c87
to
7384a8a
Compare
kolyshkin
changed the title
capability: add ListKnown, ListSupported; deprecate List.
capability: add ListKnown, ListSupported; deprecate List
Sep 21, 2024
@thaJeztah PTAL |
According to [1], the generated files should contain a comment which matches the following regexp: ^// Code generated .* DO NOT EDIT\.$ Fix accordingly. [1]: https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Rebased |
kolyshkin
commented
Sep 25, 2024
Apparently, most users of capability.List wants the list of supported capabilities (i.e. they go on to exclude capabilities above the last known one). Let's provide ListSupported to such users. Also, provide ListKnown, and deprecate List. Finally, amend LastCap documentation with a link to ListSupported, as this is what most users are using it for. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apparently, most users of capability.List wants the list of supported
capabilities (i.e. they go on to exclude capabilities above the last
known one).
Let's provide
ListSupported
to such users.Also, provide
ListKnown
, and deprecateList
.Finally, amend LastCap documentation with a link to ListSupported,
as this is what most users are using it for.
Draft until #152 is merged; TODO: amendLastCap
doc to mentionListSupported
.