Skip to content

Commit

Permalink
update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Apr 16, 2020
1 parent 9e58fe0 commit ce0b74e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,8 @@ In server code, `core` can be accessed from either `server.newPlatform` or `kbnS
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `server.config()` | [`initializerContext.config.create()`](/docs/development/core/server/kibana-plugin-core-server.plugininitializercontext.config.md) | Must also define schema. See _[how to configure plugin](#configure-plugin)_ |
| `server.route` | [`core.http.createRouter`](/docs/development/core/server/kibana-plugin-core-server.httpservicesetup.createrouter.md) | [Examples](./MIGRATION_EXAMPLES.md#route-registration) |
| `server.renderApp()` | [`response.renderCoreApp()`](docs/development/core/server/kibana-plugin-core-server.httpresourcesservicetoolkit.rendercoreapp.md), [`core.httpResources.registerCoreApp()`](/docs/development/core/server/kibana-plugin-core-server.httpresources.registercoreapp.md) | [Examples](./MIGRATION_EXAMPLES.md#render-html-content) |
| `server.renderAppWithDefaultConfig()` | [`response.renderAnonymousCoreApp()`](docs/development/core/server/kibana-plugin-core-server.httpresourcesservicetoolkit.renderanonymouscoreapp.md), [`core.httpResources.registerAnonymousCoreApp()`](/docs/development/core/server/kibana-plugin-core-server.httpresources.registeranonymouscoreapp.md) | [Examples](./MIGRATION_EXAMPLES.md#render-html-content) |
| `server.renderApp()` | [`response.renderCoreApp()`](docs/development/core/server/kibana-plugin-core-server.httpresourcesservicetoolkit.rendercoreapp.md) | [Examples](./MIGRATION_EXAMPLES.md#render-html-content) |
| `server.renderAppWithDefaultConfig()` | [`response.renderAnonymousCoreApp()`](docs/development/core/server/kibana-plugin-core-server.httpresourcesservicetoolkit.renderanonymouscoreapp.md) | [Examples](./MIGRATION_EXAMPLES.md#render-html-content) |
| `request.getBasePath()` | [`core.http.basePath.get`](/docs/development/core/server/kibana-plugin-core-server.httpservicesetup.basepath.md) | |
| `server.plugins.elasticsearch.getCluster('data')` | [`context.core.elasticsearch.dataClient`](/docs/development/core/server/kibana-plugin-core-server.iscopedclusterclient.md) | |
| `server.plugins.elasticsearch.getCluster('admin')` | [`context.core.elasticsearch.adminClient`](/docs/development/core/server/kibana-plugin-core-server.iscopedclusterclient.md) | |
Expand Down
4 changes: 0 additions & 4 deletions src/core/MIGRATION_EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,6 @@ httpResources.register(
return response.renderCoreApp();
}
);
// or if no additional logic required, you can use a shortcut method:
httpResources.registerCoreApp({ path: '/chromeless' });
```
You can also specify to exclude user data from the bundle metadata. User data
Expand All @@ -728,8 +726,6 @@ httpResources.register(
return response.renderAnonymousCoreApp();
}
);
// or if no additional logic required, you can use a shortcut method as well:
httpResources.registerAnonymousCoreApp({ path: '/chromeless' });
```
## Saved Objects types
Expand Down

0 comments on commit ce0b74e

Please sign in to comment.