Skip to content

Commit

Permalink
Beats Management: Pre-migration cleanup (#69155) (#69485)
Browse files Browse the repository at this point in the history
* adapt KibanaDatabaseAdapter to use core ES service

* remove unused `exposeStaticDir` method

* create empty KP plugin

* remove unused and broken tests

* delete unused wallaby config file

* delete unused utils

* delete unused d.ts and move formsy definition to new plugin

* fix findNonExistentItems

* remove dead code and useless exports from common package

* delete non migratable test suite + remove unused test adapter

* remove yet another unused adapter

* restore awaits in KibanaDatabaseAdapter
# Conflicts:
#	x-pack/legacy/plugins/beats_management/server/lib/adapters/database/__tests__/kibana.ts
#	x-pack/legacy/plugins/beats_management/server/lib/adapters/framework/integration_tests/kibana.ts
  • Loading branch information
pgayvallet authored Jun 18, 2020
1 parent 0ede38a commit 4473d04
Show file tree
Hide file tree
Showing 39 changed files with 83 additions and 1,645 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { i18n } from '@kbn/i18n';
import { ConfigBlockSchema } from './domain_types';

export const supportedConfigLabelsMap = new Map<string, string>([
const supportedConfigLabelsMap = new Map<string, string>([
[
'filebeatInputConfig.paths.ui.label',
i18n.translate('xpack.beatsManagement.filebeatInputConfig.pathsLabel', {
Expand Down
2 changes: 0 additions & 2 deletions x-pack/legacy/plugins/beats_management/common/domain_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import * as t from 'io-ts';
import { configBlockSchemas } from './config_schemas';
import { DateFromString } from './io_ts_types';

export const OutputTypesArray = ['elasticsearch', 'logstash', 'kafka', 'redis'];

// Here we create the runtime check for a generic, unknown beat config type.
// We can also pass in optional params to create spacific runtime checks that
// can be used to validate blocs on the API and UI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import * as t from 'io-ts';
import { isRight } from 'fp-ts/lib/Either';

export class DateFromStringType extends t.Type<Date, string, t.mixed> {
class DateFromStringType extends t.Type<Date, string, t.mixed> {
// eslint-disable-next-line
public readonly _tag: 'DateFromISOStringType' = 'DateFromISOStringType';
constructor() {
Expand Down
11 changes: 0 additions & 11 deletions x-pack/legacy/plugins/beats_management/common/return_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ export interface ReturnTypeBulkCreate<T> extends BaseReturnType {
}>;
}

// delete
export interface ReturnTypeDelete extends BaseReturnType {
action: 'deleted';
}

export interface ReturnTypeBulkDelete extends BaseReturnType {
results: Array<{
success: boolean;
Expand Down Expand Up @@ -84,12 +79,6 @@ export interface ReturnTypeBulkGet<T> extends BaseReturnType {
items: T[];
}

// action -- e.g. validate config block. Like ES simulate endpoint
export interface ReturnTypeAction extends BaseReturnType {
result: {
[key: string]: any;
};
}
// e.g.
// {
// result: {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4473d04

Please sign in to comment.