-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Migrate savedObjectManagementActionRegistry to NP plugin #60481
Migrate savedObjectManagementActionRegistry to NP plugin #60481
Conversation
Pinging @elastic/kibana-platform (Team:Platform) |
// eslint-disable-next-line @kbn/eslint/no-restricted-paths | ||
import { homePluginMock } from '../../home/public/mocks'; |
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.
home/public/mocks
is a folder, it seems to break out eslint rule, and I was forced to eslint-disable
export interface SavedObjectsManagementRecordReference { | ||
type: string; | ||
id: string; | ||
name: string; | ||
} |
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.
Duplicate of SavedObjectReference
, removed it.
"optionalPlugins": [ | ||
"advancedSettings", | ||
"home", | ||
"management", | ||
"security", | ||
"usageCollection", | ||
"savedObjectsManagement" | ||
], |
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.
My guess is that this dependency should be optional. @elastic/kibana-security tell me if this should move to required.
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.
You're absolutely right, we should make this an optional
dependency
notificationsSetup: core.notifications, | ||
}); | ||
}, | ||
registerLegacyAPI: (legacyAPI: LegacyAPI) => {}, |
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.
@elastic/kibana-security As I said on slack, this is now an empty function. Should I remove it and associated legacy call, or do you want to keep it in case of?
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.
Yes, if you're able to easily remove this, then please do so. If it becomes too much, I'll happily to it in a followup PR
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.
Done in 4b99311
@@ -0,0 +1,7 @@ | |||
{ |
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.
Should CODEOWNERS be updated to give this plugin an owner?
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.
Good catch. updated
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.
Functionally LGTM - tested with both spaces enabled and disabled. I'll leave the review of the so_management
plugin itself to the platform team, but I didn't see anything out of place
…gement-action-registry
…gement-action-registry
…gement-action-registry
LGTM once |
…gement-action-registry
@elasticmachine merge upstream |
…gement-action-registry
src/plugins/saved_objects_management/public/services/action_registry.test.ts
Outdated
Show resolved
Hide resolved
…gement-action-registry
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* create empty plugin + move home feature registration to it * move the so action_registry to new plugin * adapt existing calls to the registry * fix i18n namespace * fix table unit tests * update codeowners * rename plugin to match other PRs * remove registerLegacyAPI from spaces public plugin * fix typo Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…1492) * create empty plugin + move home feature registration to it * move the so action_registry to new plugin * adapt existing calls to the registry * fix i18n namespace * fix table unit tests * update codeowners * rename plugin to match other PRs * remove registerLegacyAPI from spaces public plugin * fix typo Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Part of #50308
Migrate the savedObjects management actions registry to the new
SavedObjectsManagement
plugin and adapt existing calls.Checklist