Plugin API changes in 8.0

edit

Plugin API changes in 8.0

edit

This page discusses the plugin API changes that you need to be aware of when migrating your application to Kibana 8.0.

Client upgraded to v8.0

Elasticsearch service provides the new version of the elasticsearch-js library. This issue lists all changes, including the breaking changes.

Refer to #113950

Support for deprecated kbn-system-api header removed

Kibana removed support for the deprecated kbn-system-api header. Use the asSystemRequest flag instead:

const response = await core.http.get({
  path: '/url',
  asSystemRequest: true,
});

Refer to #112505

IndexPatterns.create removed

IndexPatterns.create has been removed in favor of IndexPatterns.createAndSave to enforce saving index patterns. This eliminates the creation of an index pattern that can’t be referenced by other saved objects or Kibana apps.

Refer to #82643