Skip to content

Commit

Permalink
data_xpack -> data_enhanced
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Feb 3, 2020
1 parent f361d63 commit c171a4e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/data/kibana.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "data_xpack",
"id": "data_enhanced",
"version": "8.0.0",
"kibanaVersion": "kibana",
"configPath": [
Expand Down
18 changes: 9 additions & 9 deletions x-pack/plugins/data/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
*/
import { PluginInitializer } from 'kibana/public';
import {
DataPublicPlugin as Plugin,
DataPublicSetup,
DataPublicStart,
DataPublicSetupDependencies,
DataPublicStartDependencies,
DataEnhancedPublicPlugin as Plugin,
DataEnhancedPublicSetup,
DataEnhancedPublicStart,
DataEnhancedPublicSetupDependencies,
DataEnhancedPublicStartDependencies,
} from './plugin';

export const plugin: PluginInitializer<
DataPublicSetup,
DataPublicStart,
DataPublicSetupDependencies,
DataPublicStartDependencies
DataEnhancedPublicSetup,
DataEnhancedPublicStart,
DataEnhancedPublicSetupDependencies,
DataEnhancedPublicStartDependencies
> = () => new Plugin();
16 changes: 8 additions & 8 deletions x-pack/plugins/data/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@
*/

import { CoreSetup, CoreStart, Plugin } from 'src/core/public';
import { DataPublicPluginStart, DataPublicPluginSetup } from '../../../../src/plugins/data/public';
import { DataPublicPluginSetup, DataPublicPluginStart } from '../../../../src/plugins/data/public';
import { setAutocompleteService } from './services';
import { setupKqlQuerySuggestionProvider, KUERY_LANGUAGE_NAME } from './autocomplete';

export interface DataPublicSetupDependencies {
export interface DataEnhancedPublicSetupDependencies {
data: DataPublicPluginSetup;
}
export interface DataPublicStartDependencies {
export interface DataEnhancedPublicStartDependencies {
data: DataPublicPluginStart;
}

export type DataPublicSetup = ReturnType<DataPublicPlugin['setup']>;
export type DataPublicStart = ReturnType<DataPublicPlugin['start']>;
export type DataEnhancedPublicSetup = ReturnType<DataEnhancedPublicPlugin['setup']>;
export type DataEnhancedPublicStart = ReturnType<DataEnhancedPublicPlugin['start']>;

export class DataPublicPlugin implements Plugin {
public setup(core: CoreSetup, plugins: DataPublicSetupDependencies) {
export class DataEnhancedPublicPlugin implements Plugin {
public setup(core: CoreSetup, plugins: DataEnhancedPublicSetupDependencies) {
plugins.data.autocomplete.addQuerySuggestionProvider(
KUERY_LANGUAGE_NAME,
setupKqlQuerySuggestionProvider(core)
);
}

public start(core: CoreStart, plugins: DataPublicStartDependencies) {
public start(core: CoreStart, plugins: DataEnhancedPublicStartDependencies) {
setAutocompleteService(plugins.data.autocomplete);
}
}

0 comments on commit c171a4e

Please sign in to comment.