Skip to content
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

expose ES createClient to plugins #40717

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented Jul 10, 2019

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

Dev docs

New platform plugins may create their custom elasticsearch clients with elasticsearch.createClient.

class MyPlugin {
 public async setup(core: CoreSetup) {
   this.clusterClient = core.elasticsearch.createClient('name', configObject);
   const result = await this.clusterClient.callAsInternalUser('/endpoint');

@mshustov mshustov added review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v7.4.0 labels Jul 10, 2019
@mshustov mshustov requested a review from a team as a code owner July 10, 2019 09:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@joshdover joshdover left a comment

Choose a reason for hiding this comment

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

Nice and easy

@mshustov mshustov merged commit ed66962 into elastic:master Jul 11, 2019
@mshustov mshustov deleted the createCluster-to-plugin branch July 11, 2019 07:32
mshustov added a commit to mshustov/kibana that referenced this pull request Jul 11, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:New Platform release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants