Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Jun 19, 2023
1 parent 4ec909c commit 80cf142
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ export const useFetchIndices = (): UseFetchIndicesResponse => {
data: [
...Array(10)
.fill(0)
.map((_, i) => ({
name: `.index-${i}`,
})),
.map((_, i) => `.index-${i}`),
...Array(10)
.fill(0)
.map((_, i) => ({
name: `.some-other-index-${i}`,
})),
.map((_, i) => `.some-other-index-${i}`),
] as Index[],
refetch: function () {} as UseFetchIndicesResponse['refetch'],
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,9 @@ interface Option {

export function CustomKqlIndicatorTypeForm() {
const { control, watch, getFieldState } = useFormContext<CreateSLOInput>();
<<<<<<< HEAD
const { isLoading, data: indexFields } = useFetchIndexPatternFields(
watch('indicator.params.index')
);
=======
const index = watch('indicator.params.index');

const { isLoading, data: indexFields } = useFetchIndexPatternFields(index);
>>>>>>> b1704f5365a (Extract index variable)
const timestampFields = (indexFields ?? []).filter((field) => field.type === 'date');

return (
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -26967,7 +26967,6 @@
"xpack.observability.slo.sloEdit.createAlert.title": "Créer",
"xpack.observability.slo.sloEdit.createSloButton": "Créer un SLO",
"xpack.observability.slo.sloEdit.customKql.indexSelection.helpText": "Utilisez le caractère * pour élargir votre recherche.",
"xpack.observability.slo.sloEdit.customKql.indexSelection.indexOptionsLabel": "Sélectionner un index existant",
"xpack.observability.slo.sloEdit.customKql.indexSelection.indexPatternLabel": "Utiliser un modèle d'indexation",
"xpack.observability.slo.sloEdit.customKql.indexSelection.label": "Index",
"xpack.observability.slo.sloEdit.customKql.indexSelection.placeholder": "Sélectionner un index ou un modèle d'indexation",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -26949,7 +26949,6 @@
"xpack.observability.slo.sloEdit.createAlert.title": "作成",
"xpack.observability.slo.sloEdit.createSloButton": "SLOの作成",
"xpack.observability.slo.sloEdit.customKql.indexSelection.helpText": "* で検索クエリの範囲を広げます。",
"xpack.observability.slo.sloEdit.customKql.indexSelection.indexOptionsLabel": "既存のインデックスを選択",
"xpack.observability.slo.sloEdit.customKql.indexSelection.indexPatternLabel": "インデックスパターンを使用",
"xpack.observability.slo.sloEdit.customKql.indexSelection.label": "インデックス",
"xpack.observability.slo.sloEdit.customKql.indexSelection.placeholder": "インデックスまたはインデックスパターンを選択",
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -26947,7 +26947,6 @@
"xpack.observability.slo.sloEdit.createAlert.title": "创建",
"xpack.observability.slo.sloEdit.createSloButton": "创建 SLO",
"xpack.observability.slo.sloEdit.customKql.indexSelection.helpText": "使用 * 可扩大您的查询范围。",
"xpack.observability.slo.sloEdit.customKql.indexSelection.indexOptionsLabel": "选择现有索引",
"xpack.observability.slo.sloEdit.customKql.indexSelection.indexPatternLabel": "使用索引模式",
"xpack.observability.slo.sloEdit.customKql.indexSelection.label": "索引",
"xpack.observability.slo.sloEdit.customKql.indexSelection.placeholder": "选择索引或索引模式",
Expand Down

0 comments on commit 80cf142

Please sign in to comment.