-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Use savedObjects provided by the platform instead of legacy shim.
#53264
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
Use savedObjects provided by the platform instead of legacy shim.
#53264
Conversation
|
Pinging @elastic/kibana-security (Team:Security) |
| export class Plugin { | ||
| private readonly logger: Logger; | ||
| private savedObjectsSetup?: ReturnType<typeof setupSavedObjects>; | ||
| private savedObjectsSetup!: ReturnType<typeof setupSavedObjects>; |
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.
question Is there a benefit or preference to using ReturnType<typeof setupSavedObjects> instead of the exported SavedObjectsSetup type?
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.
Hmm, looks like ReturnType<typeof setupSavedObjects> is just a stupid alternative for SavedObjectsSetup, have no idea why I have it here 🙈 Good catch, will fix!
legrego
left a comment
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.
LGTM!
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
|
7.x/7.6.0: 05ca2db |
Use
savedObjectsprovided by the platform instead of legacy shim in Encrypted Saved Objects plugin.