Skip to content

Commit 7699afa

Browse files
committed
remove legacy ES plug
1 parent dd8db10 commit 7699afa

File tree

15 files changed

+3
-878
lines changed

15 files changed

+3
-878
lines changed

kibana.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export { Public, Server };
2828
/**
2929
* All exports from TS ambient definitions (where types are added for JS source in a .d.ts file).
3030
*/
31-
import * as LegacyElasticsearch from './src/legacy/core_plugins/elasticsearch';
3231
import * as LegacyKibanaPluginSpec from './src/legacy/plugin_discovery/plugin_spec/plugin_spec_options';
3332
import * as LegacyKibanaServer from './src/legacy/server/kbn_server';
3433

@@ -44,13 +43,4 @@ export namespace Legacy {
4443
export type InitPluginFunction = LegacyKibanaPluginSpec.InitPluginFunction;
4544
export type UiExports = LegacyKibanaPluginSpec.UiExports;
4645
export type PluginSpecOptions = LegacyKibanaPluginSpec.PluginSpecOptions;
47-
48-
export namespace Plugins {
49-
export namespace elasticsearch {
50-
export type Plugin = LegacyElasticsearch.ElasticsearchPlugin;
51-
export type Cluster = LegacyElasticsearch.Cluster;
52-
export type ClusterConfig = LegacyElasticsearch.ClusterConfig;
53-
export type CallClusterOptions = LegacyElasticsearch.CallClusterOptions;
54-
}
55-
}
5646
}

src/legacy/core_plugins/elasticsearch/index.d.ts

Lines changed: 0 additions & 526 deletions
This file was deleted.

src/legacy/core_plugins/elasticsearch/index.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/legacy/core_plugins/elasticsearch/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/legacy/core_plugins/elasticsearch/server/lib/abortable_request_handler.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/legacy/core_plugins/elasticsearch/server/lib/abortable_request_handler.test.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/legacy/core_plugins/elasticsearch/server/lib/cluster.ts

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/legacy/core_plugins/elasticsearch/server/lib/create_proxy.js

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/legacy/server/kbn_server.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@ import {
3333
import { LegacyConfig, ILegacyInternals } from '../../core/server/legacy';
3434
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
3535
import { UiPlugins } from '../../core/server/plugins';
36-
import { ElasticsearchPlugin } from '../core_plugins/elasticsearch';
3736

3837
// lot of legacy code was assuming this type only had these two methods
3938
export type KibanaConfig = Pick<LegacyConfig, 'get' | 'has'>;
4039

4140
// Extend the defaults with the plugins and server methods we need.
4241
declare module 'hapi' {
4342
interface PluginProperties {
44-
elasticsearch: ElasticsearchPlugin;
45-
kibana: any;
4643
spaces: any;
47-
// add new plugin types here
4844
}
4945

5046
interface Server {

test/api_integration/apis/elasticsearch/index.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)