* Convert common/services and server/lib to TypeScript. Update Jest tests. - Remove deserializeAutoFollowPattern behavior that returned an empty object if the pattern was undefined. * Localize mocks with the component integration tests. * Update API unit tests to use NP mocks. - Break up test files. - Use inline mocked ES response instead of fixture files. - Move remaining fixture files into client integration tests directory. * Make API route validation more strict. * Publish isUiDisabled as part of Remote Clusters contract. * Default trackUiMetric service to be a no-op. * Remove security dependency. - Fix license check so that CCR won't render if the license is invalid. - Fix server security check to be more precise by checking if ES has security disabled. * Render timestamp for autofollow errors.
20 lines
758 B
TypeScript
20 lines
758 B
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 { PluginInitializerContext, PluginConfigDescriptor } from 'src/core/server';
|
|
import { CrossClusterReplicationServerPlugin } from './plugin';
|
|
import { configSchema, CrossClusterReplicationConfig } from './config';
|
|
|
|
export const plugin = (pluginInitializerContext: PluginInitializerContext) =>
|
|
new CrossClusterReplicationServerPlugin(pluginInitializerContext);
|
|
|
|
export const config: PluginConfigDescriptor<CrossClusterReplicationConfig> = {
|
|
schema: configSchema,
|
|
exposeToBrowser: {
|
|
ui: true,
|
|
},
|
|
};
|