From af106c0b009b5ae29d9ddf01ad046e2b997b5ea2 Mon Sep 17 00:00:00 2001 From: John Schulz Date: Wed, 1 Jul 2020 14:58:15 -0400 Subject: [PATCH] Remove 'requirement' from types, tests, and examples --- .../common/openapi/spec_oas3.json | 40 ------------------- .../common/services/package_to_config.test.ts | 1 - .../ingest_manager/common/types/models/epm.ts | 1 - .../services/validate_datasource.test.ts | 1 - 4 files changed, 43 deletions(-) diff --git a/x-pack/plugins/ingest_manager/common/openapi/spec_oas3.json b/x-pack/plugins/ingest_manager/common/openapi/spec_oas3.json index d17b4115e64ab..eac736efd2540 100644 --- a/x-pack/plugins/ingest_manager/common/openapi/spec_oas3.json +++ b/x-pack/plugins/ingest_manager/common/openapi/spec_oas3.json @@ -1446,11 +1446,6 @@ "description": "CoreDNS logs and metrics integration.\nThe CoreDNS integrations allows to gather logs and metrics from the CoreDNS DNS server to get better insights.\n", "type": "integration", "categories": ["logs", "metrics"], - "requirement": { - "kibana": { - "versions": ">6.7.0" - } - }, "icons": [ { "src": "/package/coredns-1.0.1/img/icon.png", @@ -1728,11 +1723,6 @@ "security" ], "release": "beta", - "requirement": { - "kibana": { - "versions": ">7.4.0" - } - }, "icons": [ { "src": "/package/endpoint/0.3.0/img/logo-endpoint-64-color.svg", @@ -3905,35 +3895,6 @@ "type": "string" } }, - "requirement": { - "oneOf": [ - { - "properties": { - "kibana": { - "type": "object", - "properties": { - "versions": { - "type": "string" - } - } - } - } - }, - { - "properties": { - "elasticsearch": { - "type": "object", - "properties": { - "versions": { - "type": "string" - } - } - } - } - } - ], - "type": "object" - }, "screenshots": { "type": "array", "items": { @@ -4026,7 +3987,6 @@ "description", "type", "categories", - "requirement", "assets", "format_version", "download", diff --git a/x-pack/plugins/ingest_manager/common/services/package_to_config.test.ts b/x-pack/plugins/ingest_manager/common/services/package_to_config.test.ts index 7739fdc3a3b61..e76d7ca6d6409 100644 --- a/x-pack/plugins/ingest_manager/common/services/package_to_config.test.ts +++ b/x-pack/plugins/ingest_manager/common/services/package_to_config.test.ts @@ -15,7 +15,6 @@ describe('Ingest Manager - packageToConfig', () => { description: 'description', type: 'mock', categories: [], - requirement: { kibana: { versions: '' }, elasticsearch: { versions: '' } }, format_version: '', download: '', path: '', diff --git a/x-pack/plugins/ingest_manager/common/types/models/epm.ts b/x-pack/plugins/ingest_manager/common/types/models/epm.ts index f45924c30faad..adcbbbcd656c4 100644 --- a/x-pack/plugins/ingest_manager/common/types/models/epm.ts +++ b/x-pack/plugins/ingest_manager/common/types/models/epm.ts @@ -53,7 +53,6 @@ export interface RegistryPackage { description: string; type: string; categories: string[]; - requirement: RequirementsByServiceName; screenshots?: RegistryImage[]; icons?: RegistryImage[]; assets?: string[]; diff --git a/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/agent_config/create_datasource_page/services/validate_datasource.test.ts b/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/agent_config/create_datasource_page/services/validate_datasource.test.ts index 64facf01d474a..c1482eacbfa03 100644 --- a/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/agent_config/create_datasource_page/services/validate_datasource.test.ts +++ b/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/agent_config/create_datasource_page/services/validate_datasource.test.ts @@ -19,7 +19,6 @@ describe('Ingest Manager - validateDatasource()', () => { description: 'description', type: 'mock', categories: [], - requirement: { kibana: { versions: '' }, elasticsearch: { versions: '' } }, format_version: '', download: '', path: '',