* [TSVB] use new Search API for rollup search Closes: #82710 * remove unused code * rollup_search_strategy.test.js -> rollup_search_strategy.test.ts * default_search_capabilities.test.js -> default_search_capabilities.test.ts * remove getRollupService * fix CI * fix some types * update types * update codeowners * fix PR comments Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # .github/CODEOWNERS # x-pack/plugins/vis_type_timeseries_enhanced/server/search_strategies/rollup_search_capabilities.test.ts
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { Plugin, PluginInitializerContext, Logger, CoreSetup } from 'src/core/server';
|
|
import { VisTypeTimeseriesSetup } from 'src/plugins/vis_type_timeseries/server';
|
|
import { RollupSearchStrategy } from './search_strategies/rollup_search_strategy';
|
|
|
|
interface VisTypeTimeseriesEnhancedSetupDependencies {
|
|
visTypeTimeseries: VisTypeTimeseriesSetup;
|
|
}
|
|
|
|
export class VisTypeTimeseriesEnhanced
|
|
implements Plugin<void, void, VisTypeTimeseriesEnhancedSetupDependencies, any> {
|
|
private logger: Logger;
|
|
|
|
constructor(initializerContext: PluginInitializerContext) {
|
|
this.logger = initializerContext.logger.get('vis_type_timeseries_enhanced');
|
|
}
|
|
|
|
public async setup(
|
|
core: CoreSetup,
|
|
{ visTypeTimeseries }: VisTypeTimeseriesEnhancedSetupDependencies
|
|
) {
|
|
this.logger.debug('Starting plugin');
|
|
|
|
visTypeTimeseries.addSearchStrategy(new RollupSearchStrategy());
|
|
}
|
|
|
|
public start() {}
|
|
}
|