Skip to content

Conversation

@azasypkin
Copy link
Member

Use savedObjects provided by the platform instead of legacy shim in Encrypted Saved Objects plugin.

@azasypkin azasypkin added chore Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// release_note:skip Skip the PR/issue when compiling release notes Feature:NP Migration v7.6.0 labels Dec 17, 2019
@azasypkin azasypkin requested a review from a team as a code owner December 17, 2019 09:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@azasypkin azasypkin requested a review from legrego December 17, 2019 10:39
export class Plugin {
private readonly logger: Logger;
private savedObjectsSetup?: ReturnType<typeof setupSavedObjects>;
private savedObjectsSetup!: ReturnType<typeof setupSavedObjects>;
Copy link
Member

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?

Copy link
Member Author

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!

Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@azasypkin azasypkin merged commit 341630d into elastic:master Dec 17, 2019
@azasypkin azasypkin deleted the issue-xxx-eso-saved-objects branch December 17, 2019 14:04
@azasypkin
Copy link
Member Author

7.x/7.6.0: 05ca2db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported chore Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v7.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants