-
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
[ESO Plugin] Migrate authc.getCurrentUser usage to coreStart.security #187024
[ESO Plugin] Migrate authc.getCurrentUser usage to coreStart.security #187024
Conversation
33b74fa
to
2eeefa2
Compare
1ae7970
to
e76a4f5
Compare
getStartServices: coreSetupMock.getStartServices, | ||
}); | ||
}); | ||
|
||
describe('#setupContract', () => { | ||
it('includes hiddenTypes when specified', async () => { | ||
await setupContract({ includedHiddenTypes: ['hiddenType'] }); | ||
setupContract({ includedHiddenTypes: ['hiddenType'] }); | ||
await nextTick(); |
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.
Minor cleanup here: it was confusing to await setupContract
since that function doesn't return a promise. But a promise does get initialized in that function, and the test depends on that promise being resolved.
Pinging @elastic/kibana-core (Team:Core) |
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!
…ver-plugin-server
💚 Build Succeeded
Metrics [docs]Unknown metric groupsReferences to deprecated APIs
History
|
Part of #186574
Summary
This PR migrates the Encrypted Saved Object Plugin's route handler that consumes
authc.getCurrentUser
to usecoreStart.security
.Background: This PR serves as an example of a plugin migrating away from depending on the Security plugin, which is a high priority effort for the last release before 9.0.
Checklist
Delete any items that are not applicable to this PR.