-
Notifications
You must be signed in to change notification settings - Fork 8.6k
feat: allow plugins to deprecate and replace features and feature privileges #186800
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
Changes from all commits
b1b8f93
33d1450
42b73b5
3fb8100
de7a1d1
261cc0d
61ff30d
77d5971
015d45c
64e6e91
8c240f1
b70c615
ee7061d
a945904
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,4 +40,12 @@ export class UIActions implements UIActionsType { | |
|
|
||
| return `${this.prefix}${featureId}/${uiCapabilityParts.join('/')}`; | ||
| } | ||
|
|
||
| /** | ||
| * Checks if the action is a valid UI action. | ||
| * @param action The action string to check. | ||
| */ | ||
| public isValid(action: string) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: it's necessary to filter out non-UI actions when complementing actions of the registered deprecated features with the UI actions of the replacement features. This ensures that user roles with deprecated privileges can toggle capabilities exposed by the replacement privileges. |
||
| return action.startsWith(this.prefix); | ||
| } | ||
| } | ||
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.
note: these types have been moved to "common" types packages.