[8.14] [ES|QL] Rename the setting to a more generic one and move to the general section (#182074) (#182252)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[ES|QL] Rename the setting to a more generic one and move to the
general section
(#182074)](https://github.com/elastic/kibana/pull/182074)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2024-05-01T14:13:53Z","message":"[ES|QL]
Rename the setting to a more generic one and move to the general section
(#182074)\n\n## Summary\r\n\r\nRenames the setting from
discover:enableESQL to enableESQL and moves it\r\nto the General
Section\r\n\r\n<img width=\"985\"
alt=\"image\"\r\nsrc=\"ebafe7cd-4695-413c-a0e3-90e3574139e5\">\r\n\r\nWe
checked the telemetry and a very small percentage of users
have\r\nswitched off this setting. It was also on tech preview so we
decided in\r\nfavor of this change as more and more applications are
using this\r\nsetting to hide ESQL from their applications.\r\n\r\n<img
width=\"850\"
alt=\"image\"\r\nsrc=\"404f2494-8a17-4a9d-943a-d9d72b324bc0\">\r\n\r\n###
Release note\r\nWe renamed the advanced setting which hides the ES|QL
from the UI from\r\n`discover:enableESQL` to `enableESQL`. You have to
switch it off again\r\nif you want to disable ES|QL features from your
kibana applications.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f3d18faab29dcf0f75813561ff69e4c4bc976860","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:breaking","backport:prev-minor","Team:Obs
AI
Assistant","Feature:ES|QL","ci:project-deploy-observability","v8.14.0","Team:ESQL","v8.15.0"],"number":182074,"url":"https://github.com/elastic/kibana/pull/182074","mergeCommit":{"message":"[ES|QL]
Rename the setting to a more generic one and move to the general section
(#182074)\n\n## Summary\r\n\r\nRenames the setting from
discover:enableESQL to enableESQL and moves it\r\nto the General
Section\r\n\r\n<img width=\"985\"
alt=\"image\"\r\nsrc=\"ebafe7cd-4695-413c-a0e3-90e3574139e5\">\r\n\r\nWe
checked the telemetry and a very small percentage of users
have\r\nswitched off this setting. It was also on tech preview so we
decided in\r\nfavor of this change as more and more applications are
using this\r\nsetting to hide ESQL from their applications.\r\n\r\n<img
width=\"850\"
alt=\"image\"\r\nsrc=\"404f2494-8a17-4a9d-943a-d9d72b324bc0\">\r\n\r\n###
Release note\r\nWe renamed the advanced setting which hides the ES|QL
from the UI from\r\n`discover:enableESQL` to `enableESQL`. You have to
switch it off again\r\nif you want to disable ES|QL features from your
kibana applications.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f3d18faab29dcf0f75813561ff69e4c4bc976860"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182074","number":182074,"mergeCommit":{"message":"[ES|QL]
Rename the setting to a more generic one and move to the general section
(#182074)\n\n## Summary\r\n\r\nRenames the setting from
discover:enableESQL to enableESQL and moves it\r\nto the General
Section\r\n\r\n<img width=\"985\"
alt=\"image\"\r\nsrc=\"ebafe7cd-4695-413c-a0e3-90e3574139e5\">\r\n\r\nWe
checked the telemetry and a very small percentage of users
have\r\nswitched off this setting. It was also on tech preview so we
decided in\r\nfavor of this change as more and more applications are
using this\r\nsetting to hide ESQL from their applications.\r\n\r\n<img
width=\"850\"
alt=\"image\"\r\nsrc=\"404f2494-8a17-4a9d-943a-d9d72b324bc0\">\r\n\r\n###
Release note\r\nWe renamed the advanced setting which hides the ES|QL
from the UI from\r\n`discover:enableESQL` to `enableESQL`. You have to
switch it off again\r\nif you want to disable ES|QL features from your
kibana applications.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f3d18faab29dcf0f75813561ff69e4c4bc976860"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2024-05-01 18:16:48 +02:00 committed by GitHub
parent a37a090da8
commit 63e53a3da7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 117 additions and 63 deletions

View file

@ -134,7 +134,7 @@ xpack.actions.queued.max: 10000
# Disables ESQL in advanced settings (hides it from the UI)
uiSettings:
overrides:
discover:enableESQL: false
enableESQL: true
# Task Manager
xpack.task_manager.allow_reading_invalid_state: false

View file

@ -11,7 +11,7 @@ In this tutorial we'll use the {kib} sample web logs in Discover and Lens to exp
[[prerequisite]]
=== Prerequisite
To be able to select **Try {esql}** from the Data views menu the `discover:enableESQL` setting must be enabled from **Stack Management > Advanced Settings**. It is enabled by default.
To be able to select **Try {esql}** from the Data views menu the `enableESQL` setting must be enabled from **Stack Management > Advanced Settings**. It is enabled by default.
[float]
[[tutorial-try-esql]]

View file

@ -209,6 +209,9 @@ The default selection in the time filter.
The maximum height that a cell occupies in a table. Set to 0 to disable
truncation.
[[enableESQL]]`enableESQL`::
This setting enables ES|QL in Kibana.
[float]
[[presentation-labs]]
==== Presentation Labs
@ -290,9 +293,6 @@ in the current data view is used.
The columns that appear by default on the *Discover* page. The default is
`_source`.
[[discover:enableESQL]]`discover:enableESQL`::
experimental[] Allows ES|QL queries for search.
[[discover-max-doc-fields-displayed]]`discover:maxDocFieldsDisplayed`::
Specifies the maximum number of fields to show in the document column of the *Discover* table.

View file

@ -13,7 +13,6 @@ export {
DEFAULT_COLUMNS_SETTING,
DOC_HIDE_TIME_COLUMN_SETTING,
DOC_TABLE_LEGACY,
ENABLE_ESQL,
FIELDS_LIMIT_SETTING,
HIDE_ANNOUNCEMENTS,
MAX_DOC_FIELDS_DISPLAYED,

View file

@ -12,7 +12,6 @@ export const CONTEXT_TIE_BREAKER_FIELDS_SETTING = 'context:tieBreakerFields';
export const DEFAULT_COLUMNS_SETTING = 'defaultColumns';
export const DOC_HIDE_TIME_COLUMN_SETTING = 'doc_table:hideTimeColumn';
export const DOC_TABLE_LEGACY = 'doc_table:legacy';
export const ENABLE_ESQL = 'discover:enableESQL';
export const FIELDS_LIMIT_SETTING = 'fields:popularLimit';
export const HIDE_ANNOUNCEMENTS = 'hideAnnouncements';
export const MAX_DOC_FIELDS_DISPLAYED = 'discover:maxDocFieldsDisplayed';

View file

@ -9,3 +9,4 @@
// we are expecting to retrieve this from an API instead
// https://github.com/elastic/elasticsearch/issues/107069
export const ESQL_LATEST_VERSION = '2024.04.01';
export const ENABLE_ESQL = 'enableESQL';

View file

@ -19,4 +19,4 @@ export {
TextBasedLanguages,
} from './src';
export { ESQL_LATEST_VERSION } from './constants';
export { ESQL_LATEST_VERSION, ENABLE_ESQL } from './constants';

View file

@ -73,7 +73,7 @@ export const CONTEXT_DEFAULT_SIZE_ID = 'context:defaultSize';
export const CONTEXT_STEP_ID = 'context:step';
export const CONTEXT_TIE_BREAKER_FIELDS_ID = 'context:tieBreakerFields';
export const DEFAULT_COLUMNS_ID = 'defaultColumns';
export const DISCOVER_ENABLE_SQL_ID = 'discover:enableSql';
export const ENABLE_ESQL_ID = 'enableESQL';
export const DISCOVER_MAX_DOC_FIELDS_DISPLAYED_ID = 'discover:maxDocFieldsDisplayed';
export const DISCOVER_MODIFY_COLUMNS_ON_SWITCH_ID = 'discover:modifyColumnsOnSwitch';
export const DISCOVER_ROW_HEIGHT_OPTION_ID = 'discover:rowHeightOption';

View file

@ -10,7 +10,7 @@ import React, { useCallback, useEffect, useMemo, useRef } from 'react';
import type { AggregateQuery, Query, TimeRange } from '@kbn/es-query';
import { type DataView, DataViewType } from '@kbn/data-views-plugin/public';
import { DataViewPickerProps } from '@kbn/unified-search-plugin/public';
import { ENABLE_ESQL } from '@kbn/discover-utils';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import { TextBasedLanguages } from '@kbn/esql-utils';
import {
useSavedSearch,

View file

@ -29,6 +29,7 @@ import { HomePublicPluginSetup } from '@kbn/home-plugin/public';
import { Start as InspectorPublicPluginStart } from '@kbn/inspector-plugin/public';
import { DataPublicPluginSetup, DataPublicPluginStart } from '@kbn/data-plugin/public';
import { DEFAULT_APP_CATEGORIES } from '@kbn/core/public';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/public';
import { IndexPatternFieldEditorStart } from '@kbn/data-view-field-editor-plugin/public';
import { DataViewsServicePublic } from '@kbn/data-views-plugin/public';
@ -44,7 +45,7 @@ import type { UnifiedSearchPublicPluginStart } from '@kbn/unified-search-plugin/
import type { UnifiedDocViewerStart } from '@kbn/unified-doc-viewer-plugin/public';
import { setStateToKbnUrl } from '@kbn/kibana-utils-plugin/public';
import type { LensPublicStart } from '@kbn/lens-plugin/public';
import { TRUNCATE_MAX_HEIGHT, ENABLE_ESQL } from '@kbn/discover-utils';
import { TRUNCATE_MAX_HEIGHT } from '@kbn/discover-utils';
import type { NoDataPagePluginStart } from '@kbn/no-data-page-plugin/public';
import { PLUGIN_ID } from '../common';
import { registerFeature } from './register_feature';

View file

@ -30,7 +30,6 @@ import {
TRUNCATE_MAX_HEIGHT,
SHOW_FIELD_STATISTICS,
ROW_HEIGHT_OPTION,
ENABLE_ESQL,
} from '@kbn/discover-utils';
import { DEFAULT_ROWS_PER_PAGE, ROWS_PER_PAGE_OPTIONS } from '../common/constants';
@ -310,25 +309,4 @@ export const getUiSettings: (
schema: schema.number({ min: 0 }),
requiresPageReload: true,
},
[ENABLE_ESQL]: {
name: i18n.translate('discover.advancedSettings.enableESQLTitle', {
defaultMessage: 'Enable ES|QL',
}),
value: true,
description: i18n.translate('discover.advancedSettings.enableESQLDescription', {
defaultMessage:
'This setting enables ES|QL in Kibana. By switching it off you will hide the ES|QL user interface from various applications. However, users will be able to access existing ES|QL saved searches, visualizations, etc. If you have feedback on this experience please reach out to us on {link}',
values: {
link:
`<a href="https://ela.st/esql-feedback" target="_blank" rel="noopener">` +
i18n.translate('discover.advancedSettings.enableESQL.discussLinkText', {
defaultMessage: 'https://ela.st/esql-feedback',
}) +
'</a>',
},
}),
requiresPageReload: true,
category: ['discover'],
schema: schema.boolean(),
},
});

View file

@ -539,7 +539,7 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
type: 'boolean',
_meta: { description: 'Non-default value of setting.' },
},
'discover:enableESQL': {
enableESQL: {
type: 'boolean',
_meta: { description: 'Non-default value of setting.' },
},

View file

@ -34,7 +34,7 @@ export interface UsageStats {
'discover:searchFieldsFromSource': boolean;
'discover:showFieldStatistics': boolean;
'discover:showMultiFields': boolean;
'discover:enableESQL': boolean;
enableESQL: boolean;
'discover:maxDocFieldsDisplayed': number;
'securitySolution:rulesTableRefresh': string;
'observability:enableInspectEsQueries': boolean;

View file

@ -10254,7 +10254,7 @@
"description": "Non-default value of setting."
}
},
"discover:enableESQL": {
"enableESQL": {
"type": "boolean",
"_meta": {
"description": "Non-default value of setting."

View file

@ -4,7 +4,7 @@
"owner": "@elastic/kibana-esql",
"plugin": {
"id": "textBasedLanguages",
"server": false,
"server": true,
"browser": true,
"optionalPlugins": [
"indexManagement"

View file

@ -0,0 +1,12 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export const plugin = async () => {
const { TextBasedLanguagesServerPlugin } = await import('./plugin');
return new TextBasedLanguagesServerPlugin();
};

View file

@ -0,0 +1,23 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import type { CoreSetup, CoreStart, Plugin } from '@kbn/core/server';
import { getUiSettings } from './ui_settings';
export class TextBasedLanguagesServerPlugin implements Plugin {
public setup(core: CoreSetup) {
core.uiSettings.register(getUiSettings());
return {};
}
public start(core: CoreStart) {
return {};
}
public stop() {}
}

View file

@ -0,0 +1,36 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { i18n } from '@kbn/i18n';
import { schema } from '@kbn/config-schema';
import type { UiSettingsParams } from '@kbn/core/server';
import { ENABLE_ESQL } from '@kbn/esql-utils';
export const getUiSettings: () => Record<string, UiSettingsParams> = () => ({
[ENABLE_ESQL]: {
name: i18n.translate('textBasedLanguages.advancedSettings.enableESQLTitle', {
defaultMessage: 'Enable ES|QL',
}),
value: true,
description: i18n.translate('textBasedLanguages.advancedSettings.enableESQLDescription', {
defaultMessage:
'This setting enables ES|QL in Kibana. By switching it off you will hide the ES|QL user interface from various applications. However, users will be able to access existing ES|QL saved searches, visualizations, etc. If you have feedback on this experience please reach out to us on {link}',
values: {
link:
`<a href="https://ela.st/esql-feedback" target="_blank" rel="noopener">` +
i18n.translate('textBasedLanguages.advancedSettings.enableESQL.discussLinkText', {
defaultMessage: 'https://ela.st/esql-feedback',
}) +
'</a>',
},
}),
requiresPageReload: true,
schema: schema.boolean(),
},
});

View file

@ -15,7 +15,10 @@
"@kbn/core",
"@kbn/expressions-plugin",
"@kbn/data-views-plugin",
"@kbn/index-management"
"@kbn/index-management",
"@kbn/i18n",
"@kbn/config-schema",
"@kbn/esql-utils"
],
"exclude": [
"target/**/*",

View file

@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await kibanaServer.uiSettings.replace({
defaultIndex: 'logstash-*',
'bfetch:disable': true,
'discover:enableESQL': true,
enableESQL: true,
});
await PageObjects.timePicker.setDefaultAbsoluteRangeViaUiSettings();
});

View file

@ -35,7 +35,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const defaultSettings = {
defaultIndex: 'logstash-*',
'discover:enableESQL': true,
enableESQL: true,
};
describe('discover esql view', async function () {

View file

@ -30,7 +30,7 @@ import {
UrlStateProvider,
} from '@kbn/ml-url-state';
import type { SavedSearch } from '@kbn/saved-search-plugin/public';
import { ENABLE_ESQL } from '@kbn/discover-utils';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import { EuiCallOut } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
import { getCoreStart, getPluginsStart } from '../../kibana_services';

View file

@ -78,7 +78,6 @@
"@kbn/visualization-utils",
"@kbn/ml-time-buckets",
"@kbn/aiops-log-rate-analysis",
"@kbn/discover-utils"
],
"exclude": [
"target/**/*",

View file

@ -11,6 +11,7 @@ import type { Observable } from 'rxjs';
import { css } from '@emotion/react';
import { i18n } from '@kbn/i18n';
import { render, unmountComponentAtNode } from 'react-dom';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import {
DataViewBase,
EsQueryConfig,
@ -1560,7 +1561,7 @@ export class Embeddable
public getIsEditable() {
// for ES|QL, editing is allowed only if the advanced setting is on
if (Boolean(this.isTextBasedLanguage()) && !this.deps.uiSettings.get('discover:enableESQL')) {
if (Boolean(this.isTextBasedLanguage()) && !this.deps.uiSettings.get(ENABLE_ESQL)) {
return false;
}
return (

View file

@ -32,7 +32,7 @@ describe('create Lens panel action', () => {
uiSettings: {
...core.uiSettings,
get: (setting: string) => {
return setting === 'discover:enableESQL';
return setting === 'enableESQL';
},
},
} as CoreStart;

View file

@ -9,7 +9,7 @@ import type { CoreStart } from '@kbn/core/public';
import { getLensAttributesFromSuggestion } from '@kbn/visualization-utils';
import { IncompatibleActionError } from '@kbn/ui-actions-plugin/public';
import { PresentationContainer } from '@kbn/presentation-containers';
import { getESQLAdHocDataview, getIndexForESQLQuery } from '@kbn/esql-utils';
import { getESQLAdHocDataview, getIndexForESQLQuery, ENABLE_ESQL } from '@kbn/esql-utils';
import type { Datasource, Visualization } from '../../types';
import type { LensPluginStartDependencies } from '../../plugin';
import { fetchDataFromAggregateQuery } from '../../datasources/text_based/fetch_data_from_aggregate_query';
@ -28,7 +28,7 @@ export const [getDatasourceMap, setDatasourceMap] = createGetterSetter<
>('DatasourceMap', false);
export function isCreateActionCompatible(core: CoreStart) {
return core.uiSettings.get('discover:enableESQL');
return core.uiSettings.get(ENABLE_ESQL);
}
export async function executeCreateAction({

View file

@ -51,7 +51,7 @@ describe('inapp editing of Lens embeddable', () => {
uiSettings: {
...core.uiSettings,
get: (setting: string) => {
return setting === 'discover:enableESQL';
return setting === 'enableESQL';
},
},
} as CoreStart;

View file

@ -9,6 +9,7 @@ import ReactDOM from 'react-dom';
import type { CoreStart } from '@kbn/core/public';
import { isOfAggregateQueryType } from '@kbn/es-query';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import { IncompatibleActionError } from '@kbn/ui-actions-plugin/public';
import type { LensPluginStartDependencies } from '../../../plugin';
import type { TypedLensByValueInput } from '../../../embeddable/embeddable_component';
@ -21,7 +22,7 @@ export function isEmbeddableEditActionCompatible(
) {
// for ES|QL is compatible only when advanced setting is enabled
const query = attributes.state.query;
return isOfAggregateQueryType(query) ? core.uiSettings.get('discover:enableESQL') : true;
return isOfAggregateQueryType(query) ? core.uiSettings.get(ENABLE_ESQL) : true;
}
export async function executeEditEmbeddableAction({

View file

@ -25,7 +25,7 @@ import {
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import { useTimefilter } from '@kbn/ml-date-picker';
import { ENABLE_ESQL } from '@kbn/discover-utils';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import { isFullLicense } from '../license';
import { useMlKibana, useNavigateToPath } from '../contexts/kibana';
import { HelpMenu } from '../components/help_menu';

View file

@ -50,7 +50,7 @@ import type { SavedSearchPublicPluginStart } from '@kbn/saved-search-plugin/publ
import type { PresentationUtilPluginStart } from '@kbn/presentation-util-plugin/public';
import type { DataViewEditorStart } from '@kbn/data-view-editor-plugin/public';
import type { FieldFormatsRegistry } from '@kbn/field-formats-plugin/common';
import { ENABLE_ESQL } from '@kbn/discover-utils';
import { ENABLE_ESQL } from '@kbn/esql-utils';
import type { MlSharedServices } from './application/services/get_shared_ml_services';
import { getMlSharedServices } from './application/services/get_shared_ml_services';
import { registerManagementSection } from './application/management';

View file

@ -124,6 +124,6 @@
"@kbn/presentation-containers",
"@kbn/presentation-panel-plugin",
"@kbn/shared-ux-utility",
"@kbn/discover-utils",
"@kbn/esql-utils",
],
}

View file

@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { ENABLE_ESQL } from '@kbn/esql-utils';
import { DataSourceSelection, isDatasetSelection } from '../../common/data_source_selection';
import { useKibanaContextForPlugin } from '../utils/use_kibana';
@ -27,7 +27,7 @@ export const useEsql = ({ dataSourceSelection }: EsqlContextDeps): UseEsqlResult
services: { uiSettings, discover },
} = useKibanaContextForPlugin();
const isEsqlEnabled = uiSettings?.get('discover:enableESQL');
const isEsqlEnabled = uiSettings?.get(ENABLE_ESQL);
const esqlPattern = isDatasetSelection(dataSourceSelection)
? dataSourceSelection.selection.dataset.name

View file

@ -47,6 +47,7 @@
"@kbn/unified-field-list",
"@kbn/unified-search-plugin",
"@kbn/xstate-utils",
"@kbn/esql-utils",
],
"exclude": [
"target/**/*"

View file

@ -10,7 +10,7 @@ Get started with ES|QLedit
To get started with ES|QL in Discover, open the main menu and select
Discover. Next, from the Data views menu, select Try ES|QL.
The ability to select ES|QL from the Data views menu can be enabled and
disabled using the `discover:enableESQL` setting from
disabled using the `enableESQL` setting from
Advanced Settings.
The query baredit
After switching to ES|QL mode, the query bar shows a sample query. For example:

View file

@ -50,7 +50,7 @@ export const QueryFormTypeChooser: React.FC<QueryFormTypeProps> = ({
onFormTypeSelect,
}) => {
const { uiSettings } = useTriggerUiActionServices();
const isEsqlEnabled = uiSettings?.get('discover:enableESQL');
const isEsqlEnabled = uiSettings?.get('enableESQL');
const formTypeItems = useMemo(() => {
const items: Array<{ formType: SearchType; label: string; description: string }> = [

View file

@ -2302,8 +2302,8 @@
"discover.advancedSettings.docTableHideTimeColumnText": "Permet de masquer la colonne ''Time'' dans Discover et dans toutes les recherches enregistrées des tableaux de bord.",
"discover.advancedSettings.docTableHideTimeColumnTitle": "Masquer la colonne ''Time''",
"discover.advancedSettings.documentExplorerLinkText": "Explorateur de documents",
"discover.advancedSettings.enableESQL.discussLinkText": "discuss.elastic.co/c/elastic-stack/kibana",
"discover.advancedSettings.enableESQLTitle": "Activer ES|QL",
"textBasedLanguages.advancedSettings.enableESQL.discussLinkText": "discuss.elastic.co/c/elastic-stack/kibana",
"textBasedLanguages.advancedSettings.enableESQLTitle": "Activer ES|QL",
"discover.advancedSettings.fieldsPopularLimitText": "Les N champs les plus populaires à afficher",
"discover.advancedSettings.fieldsPopularLimitTitle": "Limite de champs populaires",
"discover.advancedSettings.maxDocFieldsDisplayedText": "Le nombre maximal de champs renvoyés dans le résumé du document",

View file

@ -2300,8 +2300,8 @@
"discover.advancedSettings.docTableHideTimeColumnText": "Discover と、ダッシュボードのすべての保存された検索で、「時刻」列を非表示にします。",
"discover.advancedSettings.docTableHideTimeColumnTitle": "「時刻」列を非表示",
"discover.advancedSettings.documentExplorerLinkText": "ドキュメントエクスプローラー",
"discover.advancedSettings.enableESQL.discussLinkText": "discuss.elastic.co/c/elastic-stack/kibana",
"discover.advancedSettings.enableESQLTitle": "ES|QLを有効化",
"textBasedLanguages.advancedSettings.enableESQL.discussLinkText": "discuss.elastic.co/c/elastic-stack/kibana",
"textBasedLanguages.advancedSettings.enableESQLTitle": "ES|QLを有効化",
"discover.advancedSettings.fieldsPopularLimitText": "最も頻繁に使用されるフィールドのトップNを表示します",
"discover.advancedSettings.fieldsPopularLimitTitle": "頻繁に使用されるフィールドの制限",
"discover.advancedSettings.maxDocFieldsDisplayedText": "ドキュメント概要でレンダリングされるフィールドの最大数",

View file

@ -2304,8 +2304,8 @@
"discover.advancedSettings.docTableHideTimeColumnText": "在 Discover 中和仪表板上的所有已保存搜索中隐藏“时间”列。",
"discover.advancedSettings.docTableHideTimeColumnTitle": "隐藏“时间”列",
"discover.advancedSettings.documentExplorerLinkText": "Document Explorer",
"discover.advancedSettings.enableESQL.discussLinkText": "discuss.elastic.co/c/elastic-stack/kibana",
"discover.advancedSettings.enableESQLTitle": "启用 ES|QL",
"textBasedLanguages.advancedSettings.enableESQL.discussLinkText": "discuss.elastic.co/c/elastic-stack/kibana",
"textBasedLanguages.advancedSettings.enableESQLTitle": "启用 ES|QL",
"discover.advancedSettings.fieldsPopularLimitText": "要显示的排名前 N 最常见字段",
"discover.advancedSettings.fieldsPopularLimitTitle": "常见字段限制",
"discover.advancedSettings.maxDocFieldsDisplayedText": "在文档摘要中渲染的最大字段数目",

View file

@ -31,7 +31,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const monacoEditor = getService('monacoEditor');
const defaultSettings = {
'discover:enableESQL': true,
enableESQL: true,
};
async function setDiscoverTimeRange() {

View file

@ -35,7 +35,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
'x-pack/test/functional/fixtures/kbn_archiver/discover/default'
);
await kibanaServer.uiSettings.replace({
'discover:enableESQL': true,
enableESQL: true,
});
await PageObjects.common.navigateToApp('discover');
await PageObjects.timePicker.setDefaultAbsoluteRange();