Skip to content

Commit

Permalink
[APM] Remove the feature flag for the Service overview (Kibana advanc…
Browse files Browse the repository at this point in the history
…ed setting) (#107657)
  • Loading branch information
cauemarcondes committed Aug 5, 2021
1 parent 3438a70 commit ca6182c
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,6 @@ export const stackManagementSchema: MakeSchemaFrom<UsageStats> = {
type: 'boolean',
_meta: { description: 'Non-default value of setting.' },
},
'apm:enableServiceOverview': {
type: 'boolean',
_meta: { description: 'Non-default value of setting.' },
},
'observability:enableInspectEsQueries': {
type: 'boolean',
_meta: { description: 'Non-default value of setting.' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export interface UsageStats {
'discover:maxDocFieldsDisplayed': number;
'securitySolution:rulesTableRefresh': string;
'apm:enableSignificantTerms': boolean;
'apm:enableServiceOverview': boolean;
'observability:enableInspectEsQueries': boolean;
'visualize:enableLabs': boolean;
'visualization:heatmap:maxBuckets': number;
Expand Down
8 changes: 1 addition & 7 deletions src/plugins/telemetry/schema/oss_plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -7783,12 +7783,6 @@
"description": "Non-default value of setting."
}
},
"apm:enableServiceOverview": {
"type": "boolean",
"_meta": {
"description": "Non-default value of setting."
}
},
"observability:enableInspectEsQueries": {
"type": "boolean",
"_meta": {
Expand Down Expand Up @@ -9336,4 +9330,4 @@
}
}
}
}
}
8 changes: 0 additions & 8 deletions x-pack/plugins/apm/common/ui_settings_keys.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,20 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import qs from 'query-string';
import React from 'react';
import { Redirect } from 'react-router-dom';
import qs from 'query-string';
import { enableServiceOverview } from '../../../../common/ui_settings_keys';
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
import { useApmParams } from '../../../hooks/use_apm_params';

export function RedirectToDefaultServiceRouteView() {
const {
core: { uiSettings },
} = useApmPluginContext();
const {
path: { serviceName },
query,
} = useApmParams('/services/:serviceName/*');

const search = qs.stringify(query);

if (uiSettings.get(enableServiceOverview)) {
return (
<Redirect
to={{ pathname: `/services/${serviceName}/overview`, search }}
/>
);
}
return (
<Redirect to={{ pathname: `/services/${serviceName}/transactions` }} />
<Redirect to={{ pathname: `/services/${serviceName}/overview`, search }} />
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
isJavaAgentName,
isRumAgentName,
} from '../../../../../common/agent_name';
import { enableServiceOverview } from '../../../../../common/ui_settings_keys';
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
import { ApmServiceContextProvider } from '../../../../context/apm_service/apm_service_context';
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
Expand Down Expand Up @@ -125,7 +124,7 @@ function TemplateWithContext({

function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
const { agentName } = useApmServiceContext();
const { core, config } = useApmPluginContext();
const { config } = useApmPluginContext();

const router = useApmRouter();

Expand All @@ -152,7 +151,6 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) {
label: i18n.translate('xpack.apm.serviceDetails.overviewTabLabel', {
defaultMessage: 'Overview',
}),
hidden: !core.uiSettings.get(enableServiceOverview),
},
{
key: 'transactions',
Expand Down
3 changes: 0 additions & 3 deletions x-pack/plugins/apm/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import { createApmAgentConfigurationIndex } from './lib/settings/agent_configura
import { getApmIndices } from './lib/settings/apm_indices/get_apm_indices';
import { createApmCustomLinkIndex } from './lib/settings/custom_link/create_custom_link_index';
import { apmIndices, apmTelemetry, apmServerSettings } from './saved_objects';
import { uiSettings } from './ui_settings';
import type {
ApmPluginRequestHandlerContext,
APMRouteHandlerResources,
Expand Down Expand Up @@ -81,8 +80,6 @@ export class APMPlugin
core.savedObjects.registerType(apmTelemetry);
core.savedObjects.registerType(apmServerSettings);

core.uiSettings.register(uiSettings);

const currentConfig = mergeConfigs(
plugins.apmOss.config,
this.initContext.config.get<APMXPackConfig>()
Expand Down
32 changes: 0 additions & 32 deletions x-pack/plugins/apm/server/ui_settings.ts

This file was deleted.

42 changes: 20 additions & 22 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -5198,11 +5198,6 @@
"visTypeXy.function.valueAxis.axisParams.help": "値軸パラメーター",
"visTypeXy.function.valueaxis.help": "値軸オブジェクトを生成します",
"visTypeXy.function.valueAxis.name.help": "値軸の名前",
"visualizations.function.xyDimension.aggType.help": "集約タイプ",
"visualizations.function.xydimension.help": "XYディメンションオブジェクトを生成します",
"visualizations.function.xyDimension.label.help": "ラベル",
"visualizations.function.xyDimension.params.help": "パラメーター",
"visualizations.function.xyDimension.visDimension.help": "ディメンションオブジェクト構成",
"visTypeXy.functions.help": "XYビジュアライゼーション",
"visTypeXy.histogram.groupTitle": "系列を分割",
"visTypeXy.histogram.histogramDescription": "軸の縦棒にデータを表示します。",
Expand Down Expand Up @@ -5241,6 +5236,11 @@
"visTypeXy.thresholdLine.style.dashedText": "鎖線",
"visTypeXy.thresholdLine.style.dotdashedText": "点線",
"visTypeXy.thresholdLine.style.fullText": "完全",
"visualizations.function.xyDimension.aggType.help": "集約タイプ",
"visualizations.function.xydimension.help": "XYディメンションオブジェクトを生成します",
"visualizations.function.xyDimension.label.help": "ラベル",
"visualizations.function.xyDimension.params.help": "パラメーター",
"visualizations.function.xyDimension.visDimension.help": "ディメンションオブジェクト構成",
"visualizations.advancedSettings.visualizeEnableLabsText": "ユーザーが実験的なビジュアライゼーションを作成、表示、編集できるようになります。無効の場合、\n ユーザーは本番準備が整ったビジュアライゼーションのみを利用できます。",
"visualizations.advancedSettings.visualizeEnableLabsTitle": "実験的なビジュアライゼーションを有効にする",
"visualizations.disabledLabVisualizationLink": "ドキュメンテーションを表示",
Expand Down Expand Up @@ -5663,8 +5663,6 @@
"xpack.apm.customLink.empty": "カスタムリンクが見つかりません。独自のカスタムリンク、たとえば特定のダッシュボードまたは外部リンクへのリンクをセットアップします。",
"xpack.apm.emptyMessage.noDataFoundDescription": "別の時間範囲を試すか検索フィルターをリセットしてください。",
"xpack.apm.emptyMessage.noDataFoundLabel": "データが見つかりません。",
"xpack.apm.enableServiceOverviewExperimentDescription": "APM でサービスの[概要]タブを有効にします。",
"xpack.apm.enableServiceOverviewExperimentName": "APM サービス概要",
"xpack.apm.error.prompt.body": "詳細はブラウザの開発者コンソールをご確認ください。",
"xpack.apm.error.prompt.title": "申し訳ございませんが、エラーが発生しました : (",
"xpack.apm.errorCountAlert.name": "エラー数しきい値",
Expand Down Expand Up @@ -6727,17 +6725,6 @@
"xpack.canvas.functions.pointseries.args.yHelpText": "Y軸の値です。",
"xpack.canvas.functions.pointseries.unwrappedExpressionErrorMessage": "表現は {fn} などの関数で囲む必要があります",
"xpack.canvas.functions.pointseriesHelpText": "{DATATABLE} を点の配列モデルに変換します。現在 {TINYMATH} 式でディメンションのメジャーを区別します。{TINYMATH_URL} をご覧ください。引数に {TINYMATH} 式が入力された場合、その引数をメジャーとして使用し、そうでない場合はディメンションになります。ディメンションを組み合わせて固有のキーを作成します。その後メジャーはそれらのキーで、指定された {TINYMATH} 関数を使用して複製されます。",
"expressionShape.functions.progress.args.barColorHelpText": "背景バーの色です。",
"expressionShape.functions.progress.args.barWeightHelpText": "背景バーの太さです。",
"expressionShape.functions.progress.args.fontHelpText": "ラベルの {CSS} フォントプロパティです。例:{FONT_FAMILY} または {FONT_WEIGHT}。",
"expressionShape.functions.progress.args.labelHelpText": "ラベルの表示・非表示を切り替えるには、{BOOLEAN_TRUE}または{BOOLEAN_FALSE}を使用します。また、ラベルとして表示する文字列を入力することもできます。",
"expressionShape.functions.progress.args.maxHelpText": "進捗エレメントの最高値です。",
"expressionShape.functions.progress.args.shapeHelpText": "{list} または {end} を選択します。",
"expressionShape.functions.progress.args.valueColorHelpText": "進捗バーの色です。",
"expressionShape.functions.progress.args.valueWeightHelpText": "進捗バーの太さです。",
"expressionShape.functions.progress.invalidMaxValueErrorMessage": "無効な {arg} 値:「{max, number}」。「{arg}」は 0 より大きい必要があります",
"expressionShape.functions.progress.invalidValueErrorMessage": "無効な値:「{value, number}」。値は 0 と {max, number} の間でなければなりません",
"expressionShape.functions.progressHelpText": "進捗エレメントを構成します。",
"xpack.canvas.functions.render.args.asHelpText": "レンダリングに使用するエレメントタイプです。代わりに {plotFn} や {shapeFn} などの特殊な関数を使用するほうがいいでしょう。",
"xpack.canvas.functions.render.args.containerStyleHelpText": "背景、境界、透明度を含む、コンテナーのスタイルです。",
"xpack.canvas.functions.render.args.cssHelpText": "このエレメントの対象となるカスタム {CSS} のブロックです。",
Expand Down Expand Up @@ -6926,8 +6913,6 @@
"xpack.canvas.renderer.pie.helpDescription": "データから円グラフをレンダリングします",
"xpack.canvas.renderer.plot.displayName": "座標プロット",
"xpack.canvas.renderer.plot.helpDescription": "データから XY プロットをレンダリングします",
"expressionShape.renderer.progress.displayName": "進捗インジケーター",
"expressionShape.renderer.progress.helpDescription": "エレメントのパーセンテージを示す進捗インジケーターをレンダリングします",
"xpack.canvas.renderer.table.displayName": "データテーブル",
"xpack.canvas.renderer.table.helpDescription": "表形式データを {HTML} としてレンダリングします",
"xpack.canvas.renderer.text.displayName": "プレインテキスト",
Expand Down Expand Up @@ -7411,6 +7396,21 @@
"xpack.canvas.workpadTemplates.table.descriptionColumnTitle": "説明",
"xpack.canvas.workpadTemplates.table.nameColumnTitle": "テンプレート名",
"xpack.canvas.workpadTemplates.table.tagsColumnTitle": "タグ",
"expressionShape.functions.progress.args.barColorHelpText": "背景バーの色です。",
"expressionShape.functions.progress.args.barWeightHelpText": "背景バーの太さです。",
"expressionShape.functions.progress.args.fontHelpText": "ラベルの {CSS} フォントプロパティです。例:{FONT_FAMILY} または {FONT_WEIGHT}。",
"expressionShape.functions.progress.args.labelHelpText": "ラベルの表示・非表示を切り替えるには、{BOOLEAN_TRUE}または{BOOLEAN_FALSE}を使用します。また、ラベルとして表示する文字列を入力することもできます。",
"expressionShape.functions.progress.args.maxHelpText": "進捗エレメントの最高値です。",
"expressionShape.functions.progress.args.shapeHelpText": "{list} または {end} を選択します。",
"expressionShape.functions.progress.args.valueColorHelpText": "進捗バーの色です。",
"expressionShape.functions.progress.args.valueWeightHelpText": "進捗バーの太さです。",
"expressionShape.functions.progress.invalidMaxValueErrorMessage": "無効な {arg} 値:「{max, number}」。「{arg}」は 0 より大きい必要があります",
"expressionShape.functions.progress.invalidValueErrorMessage": "無効な値:「{value, number}」。値は 0 と {max, number} の間でなければなりません",
"expressionShape.functions.progressHelpText": "進捗エレメントを構成します。",
"expressionShape.renderer.progress.displayName": "進捗インジケーター",
"expressionShape.renderer.progress.helpDescription": "エレメントのパーセンテージを示す進捗インジケーターをレンダリングします",
"expressionShape.renderer.shape.displayName": "形状",
"expressionShape.renderer.shape.helpDescription": "基本的な図形をレンダリングします",
"expressionRepeatImage.error.repeatImage.missingMaxArgument": "{emptyImageArgument} を指定する場合は、{maxArgument} を設定する必要があります",
"expressionRepeatImage.functions.repeatImage.args.emptyImageHelpText": "この画像のエレメントについて、{CONTEXT}および{maxArg}パラメーターの差異を解消します。画像アセットは{BASE64}データ{URL}として提供するか、部分式で渡します。",
"expressionRepeatImage.functions.repeatImage.args.imageHelpText": "繰り返す画像です。画像アセットは{BASE64}データ{URL}として提供するか、部分式で渡します。",
Expand All @@ -7432,8 +7432,6 @@
"expressionMetric.functions.metricHelpText": "ラベルの上に数字を表示します。",
"expressionMetric.renderer.metric.displayName": "メトリック",
"expressionMetric.renderer.metric.helpDescription": "ラベルの上に数字をレンダリングします",
"expressionShape.renderer.shape.displayName": "形状",
"expressionShape.renderer.shape.helpDescription": "基本的な図形をレンダリングします",
"expressionError.errorComponent.description": "表現が失敗し次のメッセージが返されました:",
"expressionError.errorComponent.title": "おっと!表現が失敗しました",
"expressionError.renderer.debug.displayName": "デバッグ",
Expand Down

0 comments on commit ca6182c

Please sign in to comment.