Skip to content

Commit

Permalink
[ResponseOps] Remove tech preview from ES query ES|QL rule type (elas…
Browse files Browse the repository at this point in the history
…tic#189568)

Resolves elastic#189566

## Summary

This PR removes tech preview from the ES query ES|QL rule form


### To verify

- Create an ES query ES|QL rule and verify that the tech preview badge
is removed from the ui.
  • Loading branch information
doakalexi authored Jul 31, 2024
1 parent 65a99a5 commit e828f75
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import React, { useMemo } from 'react';
import {
EuiBetaBadge,
EuiButtonIcon,
EuiFlexGroup,
EuiFlexItem,
Expand All @@ -22,24 +21,6 @@ import { i18n } from '@kbn/i18n';
import { SearchType } from '../types';
import { useTriggerUiActionServices } from '../util';

export const ExperimentalBadge = React.memo(() => (
<EuiBetaBadge
size="s"
label={i18n.translate('xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalLabel', {
defaultMessage: 'Technical preview',
})}
tooltipContent={i18n.translate(
'xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalDescription',
{
defaultMessage:
'This functionality is in technical preview and may be changed or removed completely in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.',
}
)}
tooltipPosition="bottom"
/>
));
ExperimentalBadge.displayName = 'ExperimentalBadge';

export interface QueryFormTypeProps {
searchType: SearchType | null;
onFormTypeSelect: (formType: SearchType | null) => void;
Expand Down Expand Up @@ -119,11 +100,6 @@ export const QueryFormTypeChooser: React.FC<QueryFormTypeProps> = ({
<h5>{activeFormTypeItem?.label}</h5>
</EuiTitle>
</EuiFlexItem>
{activeFormTypeItem?.formType === SearchType.esqlQuery && (
<EuiFlexItem>
<ExperimentalBadge />
</EuiFlexItem>
)}
</EuiFlexGroup>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down Expand Up @@ -172,11 +148,6 @@ export const QueryFormTypeChooser: React.FC<QueryFormTypeProps> = ({
<EuiFlexItem grow={false}>
<strong>{item.label}</strong>
</EuiFlexItem>
{item.formType === SearchType.esqlQuery && (
<EuiFlexItem>
<ExperimentalBadge />
</EuiFlexItem>
)}
</EuiFlexGroup>
<EuiText color="subdued" size="s">
<p>{item.description}</p>
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -39706,8 +39706,6 @@
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.cancelSelectionAriaLabel": "Annuler la sélection",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.esqlFormTypeDescription": "Utiliser ES|QL pour définir une requête de type texte.",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.esqlFormTypeLabel": "ES|QL",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalDescription": "Cette fonctionnalité est en version d'évaluation technique et pourra être modifiée ou retirée complètement dans une future version. Elastic s'efforcera de corriger tout problème, mais les fonctionnalités des versions d'évaluation technique ne sont pas soumises aux SLA de support des fonctionnalités officielles en disponibilité générale.",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalLabel": "Version d'évaluation technique",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.kqlOrLuceneFormTypeDescription": "Utilisez KQL ou Lucene pour définir une requête de type texte.",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.kqlOrLuceneFormTypeLabel": "KQL ou Lucene",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.queryDslFormTypeDescription": "Utilisez Elasticsearch Query DSL pour définir une requête.",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -39566,8 +39566,6 @@
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.cancelSelectionAriaLabel": "選択をキャンセル",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.esqlFormTypeDescription": "ES|QLを使用して、テキストベースのクエリを定義します。",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.esqlFormTypeLabel": "ES|QL",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalDescription": "この機能はテクニカルプレビュー中であり、将来のリリースでは変更されたり完全に削除されたりする場合があります。Elasticはすべての問題の修正に努めますが、テクニカルプレビュー中の機能には正式なGA機能のサポートSLAが適用されません。",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalLabel": "テクニカルプレビュー",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.kqlOrLuceneFormTypeDescription": "KQLまたはLuceneを使用して、テキストベースのクエリを定義します。",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.kqlOrLuceneFormTypeLabel": "KQLまたはLucene",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.queryDslFormTypeDescription": "ElasticsearchクエリDSLを使用して、クエリを定義します。",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -39751,8 +39751,6 @@
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.cancelSelectionAriaLabel": "取消选择",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.esqlFormTypeDescription": "使用 ES|QL 定义基于文本的查询。",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.esqlFormTypeLabel": "ES|QL",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalDescription": "此功能处于技术预览状态,在未来版本中可能会更改或完全移除。Elastic 将努力修复任何问题,但处于技术预览状态的功能不受正式 GA 功能支持 SLA 的约束。",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.experimentalLabel": "技术预览",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.kqlOrLuceneFormTypeDescription": "使用 KQL 或 Lucene 定义基于文本的查询。",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.kqlOrLuceneFormTypeLabel": "KQL 或 Lucene",
"xpack.stackAlerts.esQuery.ui.selectQueryFormType.queryDslFormTypeDescription": "使用 Elasticsearch 查询 DSL 定义查询。",
Expand Down

0 comments on commit e828f75

Please sign in to comment.