From 2e26b02da7571c03e15193c4453f7c5e13eafd73 Mon Sep 17 00:00:00 2001 From: Drew Tate Date: Fri, 7 Jun 2024 07:52:36 -0600 Subject: [PATCH] remove spatial functions section --- .../src/esql_documentation_sections.tsx | 212 ------------------ packages/kbn-text-based-editor/src/helpers.ts | 2 - 2 files changed, 214 deletions(-) diff --git a/packages/kbn-text-based-editor/src/esql_documentation_sections.tsx b/packages/kbn-text-based-editor/src/esql_documentation_sections.tsx index 3d847ed966925..b8bb4913983a3 100644 --- a/packages/kbn-text-based-editor/src/esql_documentation_sections.tsx +++ b/packages/kbn-text-based-editor/src/esql_documentation_sections.tsx @@ -4134,218 +4134,6 @@ FROM employees ], }; -export const spatialFunctions = { - label: i18n.translate('textBasedEditor.query.textBasedLanguagesEditor.spatialFunctions', { - defaultMessage: 'Spatial functions', - }), - description: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.spatialFunctionsDocumentationESQLDescription', - { - defaultMessage: `ES|QL supports these spatial functions:`, - } - ), - items: [ - { - label: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.stcontainsFunction', - { - defaultMessage: 'ST_CONTAINS', - } - ), - description: ( - - ), - }, - { - label: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.stdisjointFunction', - { - defaultMessage: 'ST_DISJOINT', - } - ), - description: ( - - ), - }, - { - label: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.stintersectsFunction', - { - defaultMessage: 'ST_INTERSECTS', - } - ), - description: ( - - ), - }, - { - label: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.stwithinFunction', - { - defaultMessage: 'ST_WITHIN', - } - ), - description: ( - - ), - }, - { - label: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.stxFunction', - { - defaultMessage: 'ST_X', - } - ), - description: ( - - ), - }, - { - label: i18n.translate( - 'textBasedEditor.query.textBasedLanguagesEditor.documentationESQL.styFunction', - { - defaultMessage: 'ST_Y', - } - ), - description: ( - - ), - }, - ], -}; - export const operators = { label: i18n.translate('textBasedEditor.query.textBasedLanguagesEditor.operators', { defaultMessage: 'Operators', diff --git a/packages/kbn-text-based-editor/src/helpers.ts b/packages/kbn-text-based-editor/src/helpers.ts index d2a429a6e0b1d..8d4943800f750 100644 --- a/packages/kbn-text-based-editor/src/helpers.ts +++ b/packages/kbn-text-based-editor/src/helpers.ts @@ -157,7 +157,6 @@ export const getDocumentationSections = async (language: string) => { functions, aggregationFunctions, groupingFunctions, - spatialFunctions, operators, } = await import('./esql_documentation_sections'); groups.push({ @@ -172,7 +171,6 @@ export const getDocumentationSections = async (language: string) => { functions, aggregationFunctions, groupingFunctions, - spatialFunctions, operators ); return {