Skip to content

Commit

Permalink
[8.x] [Index Management] Add bulk edit data retention (#203083) (#204936
Browse files Browse the repository at this point in the history
)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Index Management] Add bulk edit data retention
(#203083)](#203083)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-19T13:11:52Z","message":"[Index
Management] Add bulk edit data retention (#203083)\n\nCloses
https://github.com/elastic/kibana/issues/165142\r\n\r\n##
Summary\r\n\r\nThis PR adds bulk edit data retention to Data streams
table.\r\n\r\nOn all offerings apart from serverless security
project:\r\n\r\n\r\nhttps://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27\r\n\r\n\r\nOn
serverless security
project:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f\r\n\r\n\r\n\r\n\r\n\r\n###
How to test:\r\n\r\nTesting in serverless security project:\r\n1. Start
ES with `yarn es serverless --projectType security
-E\r\ndata_streams.lifecycle.retention.max=200d` and Kibana with
`yarn\r\nserverless-security`\r\n2. Navigate to console and create a few
data streams following
[these\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- The help text displays the set max data retention with a link
to\r\ncloud.\r\n- The form doesn't allow setting a data retention higher
than the max\r\ndata retention.\r\n- If any of the data streams has a
reduced data retention period, an\r\nerror banner is shown, displaying
the affected data streams.\r\n\r\n\r\nTesting in stateful and searc/oblt
serverless project:\r\n1. Start ES with `yarn es serverless` and Kibana
with `yarn\r\nserverless-security`\r\n2. Navigate to console and create
a few data streams following
[this\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- There is no help text displaying the max data retention and
no\r\nvalidation for the data retention period.\r\n- If any of the data
streams has a reduced data retention period, an\r\nerror banner is
shown, displaying the affected data streams.\r\n\r\nConfigure cloud
locally by adding the following to\r\n`config/kibana.dev.yml` and
restarting Kibana:\r\n```\r\nxpack.cloud.id:
'test'\r\nxpack.cloud.base_url:
\"https://cloud.elastic.co\"\r\nxpack.cloud.deployment_url:
\"/deployments/deploymentId\"\r\n```\r\n\r\n\r\n### Checklist\r\n\r\n-
[x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed
-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor","ci:cloud-deploy","ci:project-deploy-security"],"title":"[Index
Management] Add bulk edit data
retention","number":203083,"url":"https://github.com/elastic/kibana/pull/203083","mergeCommit":{"message":"[Index
Management] Add bulk edit data retention (#203083)\n\nCloses
https://github.com/elastic/kibana/issues/165142\r\n\r\n##
Summary\r\n\r\nThis PR adds bulk edit data retention to Data streams
table.\r\n\r\nOn all offerings apart from serverless security
project:\r\n\r\n\r\nhttps://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27\r\n\r\n\r\nOn
serverless security
project:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f\r\n\r\n\r\n\r\n\r\n\r\n###
How to test:\r\n\r\nTesting in serverless security project:\r\n1. Start
ES with `yarn es serverless --projectType security
-E\r\ndata_streams.lifecycle.retention.max=200d` and Kibana with
`yarn\r\nserverless-security`\r\n2. Navigate to console and create a few
data streams following
[these\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- The help text displays the set max data retention with a link
to\r\ncloud.\r\n- The form doesn't allow setting a data retention higher
than the max\r\ndata retention.\r\n- If any of the data streams has a
reduced data retention period, an\r\nerror banner is shown, displaying
the affected data streams.\r\n\r\n\r\nTesting in stateful and searc/oblt
serverless project:\r\n1. Start ES with `yarn es serverless` and Kibana
with `yarn\r\nserverless-security`\r\n2. Navigate to console and create
a few data streams following
[this\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- There is no help text displaying the max data retention and
no\r\nvalidation for the data retention period.\r\n- If any of the data
streams has a reduced data retention period, an\r\nerror banner is
shown, displaying the affected data streams.\r\n\r\nConfigure cloud
locally by adding the following to\r\n`config/kibana.dev.yml` and
restarting Kibana:\r\n```\r\nxpack.cloud.id:
'test'\r\nxpack.cloud.base_url:
\"https://cloud.elastic.co\"\r\nxpack.cloud.deployment_url:
\"/deployments/deploymentId\"\r\n```\r\n\r\n\r\n### Checklist\r\n\r\n-
[x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed
-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203083","number":203083,"mergeCommit":{"message":"[Index
Management] Add bulk edit data retention (#203083)\n\nCloses
https://github.com/elastic/kibana/issues/165142\r\n\r\n##
Summary\r\n\r\nThis PR adds bulk edit data retention to Data streams
table.\r\n\r\nOn all offerings apart from serverless security
project:\r\n\r\n\r\nhttps://github.com/user-attachments/assets/aa091fc1-5029-4542-b76b-8045c65dda27\r\n\r\n\r\nOn
serverless security
project:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/cbccc8bd-d3f1-4511-8134-bfb0a9e8587f\r\n\r\n\r\n\r\n\r\n\r\n###
How to test:\r\n\r\nTesting in serverless security project:\r\n1. Start
ES with `yarn es serverless --projectType security
-E\r\ndata_streams.lifecycle.retention.max=200d` and Kibana with
`yarn\r\nserverless-security`\r\n2. Navigate to console and create a few
data streams following
[these\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- The help text displays the set max data retention with a link
to\r\ncloud.\r\n- The form doesn't allow setting a data retention higher
than the max\r\ndata retention.\r\n- If any of the data streams has a
reduced data retention period, an\r\nerror banner is shown, displaying
the affected data streams.\r\n\r\n\r\nTesting in stateful and searc/oblt
serverless project:\r\n1. Start ES with `yarn es serverless` and Kibana
with `yarn\r\nserverless-security`\r\n2. Navigate to console and create
a few data streams following
[this\r\ninstructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html#create-component-templates)\r\n3.
Navigate to Index Management -> Data streams\r\n4. Select multiple data
streams and click on bulk edit data retention\r\nbutton\r\n5. Verify
that:\r\n- There is no help text displaying the max data retention and
no\r\nvalidation for the data retention period.\r\n- If any of the data
streams has a reduced data retention period, an\r\nerror banner is
shown, displaying the affected data streams.\r\n\r\nConfigure cloud
locally by adding the following to\r\n`config/kibana.dev.yml` and
restarting Kibana:\r\n```\r\nxpack.cloud.id:
'test'\r\nxpack.cloud.base_url:
\"https://cloud.elastic.co\"\r\nxpack.cloud.deployment_url:
\"/deployments/deploymentId\"\r\n```\r\n\r\n\r\n### Checklist\r\n\r\n-
[x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed
-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7619\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e"}}]}]
BACKPORT-->

---------

Co-authored-by: Elena Stoeva <[email protected]>
Co-authored-by: Matthew Kime <[email protected]>
  • Loading branch information
3 people authored Dec 19, 2024
1 parent 05d3f62 commit 9b2b922
Show file tree
Hide file tree
Showing 23 changed files with 841 additions and 343 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22264,7 +22264,6 @@
"xpack.idxMgmt.dataStreamList.table.actionDeleteText": "Supprimer",
"xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTitle": "Conservation des données",
"xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTooltip": "Les données sont conservées au moins pour cette durée avant leur suppression automatique. La valeur de rétention de données s'applique uniquement aux données gérées directement par le flux de données. {canDisableDataRetention, plural, one {Si certaines données sont sujettes à une politique de gestion du cycle de vie de l'index, alors la valeur de conservation des données réglée pour le flux de données ne s'applique par à ces données.} other {}}",
"xpack.idxMgmt.dataStreamList.table.deleteDataStreamsButtonLabel": "Supprimer {count, plural, one {le flux de données} other {les flux de données} }",
"xpack.idxMgmt.dataStreamList.table.healthColumnTitle": "Intégrité",
"xpack.idxMgmt.dataStreamList.table.hiddenDataStreamBadge": "Masqué",
"xpack.idxMgmt.dataStreamList.table.indicesColumnTitle": "Index",
Expand All @@ -22280,22 +22279,16 @@
"xpack.idxMgmt.dataStreamListControls.includeStatsSwitchLabel": "Statistiques incluses",
"xpack.idxMgmt.dataStreamListControls.includeStatsSwitchToolTip": "L'inclusion de statistiques peut augmenter le temps de rechargement",
"xpack.idxMgmt.dataStreamListDescription.learnMoreLinkText": "En savoir plus.",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.cancelButtonLabel": "Annuler",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionEnabledField": "Activer la conservation des données",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionField": "Conservation des données",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionFieldNonNegativeError": "Une valeur positive est requise.",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionFieldRequiredError": "Une valeur de conservation des données est requise.",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.errorDataRetentionNotification": "Erreur lors de la mise à niveau de la conservation des données : \"{error}\"",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMButtonLabel": "Stratégie ILM",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMDescription": "Afin de modifier la conservation des données pour ce flux de données, vous devez modifier le {link} associé.",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMTitle": "Ce flux de données et les index associés sont gérés par la stratégie ILM",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.learnMoreLinkText": "Comment ça fonctionne ?",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.saveButtonLabel": "Enregistrer",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.someManagedByILMBody": "Un index ou plus sont gérés par une politique ILM ({viewAllIndicesLink}). La mise à niveau de la conservation des données pour ce flux de données n'aura pas d'incidence sur ces index. À la place, vous devrez mettre à niveau la politique {ilmPolicyLink}.",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.someManagedByILMTitle": "Certains index sont gérés par la stratégie ILM",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.successDataRetentionNotification": "Conservation des données {disabledDataRetention, plural, one { désactivée } other { mise à niveau } }",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.timeUnitField": "Unité de temps",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.unitsAriaLabel": "Unité de temps",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.viewAllIndices": "afficher les index",
"xpack.idxMgmt.dataStreamsDetailsPanel.manageButtonLabel": "Gérer",
"xpack.idxMgmt.dataStreamsDetailsPanel.stepLogistics.dataRetentionFieldDecimalError": "La valeur doit être un nombre entier.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22121,7 +22121,6 @@
"xpack.idxMgmt.dataStreamList.table.actionDeleteText": "削除",
"xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTitle": "データ保持",
"xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTooltip": "データは少なくともこの期間保存された後、自動的に削除されます。データ保持値は、データストリームによって直接管理されたデータにのみ適用されます。{canDisableDataRetention, plural, one {一部のデータにインデックスライフサイクル管理ポリシーが適用される場合、データストリームに設定されたデータ保持値はそのデータに適用されません。} other {}}",
"xpack.idxMgmt.dataStreamList.table.deleteDataStreamsButtonLabel": "{count, plural, other {個のデータストリーム}}を削除",
"xpack.idxMgmt.dataStreamList.table.healthColumnTitle": "ヘルス",
"xpack.idxMgmt.dataStreamList.table.hiddenDataStreamBadge": "非表示",
"xpack.idxMgmt.dataStreamList.table.indicesColumnTitle": "インデックス",
Expand All @@ -22137,22 +22136,16 @@
"xpack.idxMgmt.dataStreamListControls.includeStatsSwitchLabel": "統計情報を含める",
"xpack.idxMgmt.dataStreamListControls.includeStatsSwitchToolTip": "統計情報を含めると、再読み込み時間が長くなることがあります",
"xpack.idxMgmt.dataStreamListDescription.learnMoreLinkText": "詳細情報",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.cancelButtonLabel": "キャンセル",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionEnabledField": "データ保持を有効化",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionField": "データ保持",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionFieldNonNegativeError": "正の値が必要です。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionFieldRequiredError": "データ保持値が必要です。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.errorDataRetentionNotification": "データ保持の更新エラー:''{error}''",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMButtonLabel": "ILMポリシー",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMDescription": "このデータストリームのデータ保持を編集するには、関連する{link}を編集する必要があります。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMTitle": "このデータストリームと関連するインデックスはILMによって管理されます。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.learnMoreLinkText": "仕組み",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.saveButtonLabel": "保存",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.someManagedByILMBody": "ILMポリシー({viewAllIndicesLink})によって1つ以上のインデックスが管理されます。このデータストリームのデータ保持を更新しても、これらのインデックスには影響しません。代わりに、{ilmPolicyLink}ポリシーを更新する必要があります。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.someManagedByILMTitle": "一部のインデックスはILMによって管理されます。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.successDataRetentionNotification": "データ保持が{disabledDataRetention, plural, one {無効化されました} other {更新されました} }",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.timeUnitField": "時間単位",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.unitsAriaLabel": "時間単位",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.viewAllIndices": "インデックスを表示",
"xpack.idxMgmt.dataStreamsDetailsPanel.manageButtonLabel": "管理",
"xpack.idxMgmt.dataStreamsDetailsPanel.stepLogistics.dataRetentionFieldDecimalError": "値は整数でなければなりません。",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22204,7 +22204,6 @@
"xpack.idxMgmt.dataStreamList.table.actionDeleteText": "删除",
"xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTitle": "数据保留",
"xpack.idxMgmt.dataStreamList.table.dataRetentionColumnTooltip": "会至少在这个时长内保留数据,然后自动将其删除。数据保留值仅适用于由数据流直接管理的数据。{canDisableDataRetention, plural, one {如果某些数据受索引生命周期管理策略约束,则为数据流设置的数据保留值不适用于该数据。} other {}}",
"xpack.idxMgmt.dataStreamList.table.deleteDataStreamsButtonLabel": "删除{count, plural, other {数据流} }",
"xpack.idxMgmt.dataStreamList.table.healthColumnTitle": "运行状况",
"xpack.idxMgmt.dataStreamList.table.hiddenDataStreamBadge": "隐藏",
"xpack.idxMgmt.dataStreamList.table.indicesColumnTitle": "索引",
Expand All @@ -22220,22 +22219,16 @@
"xpack.idxMgmt.dataStreamListControls.includeStatsSwitchLabel": "包含统计信息",
"xpack.idxMgmt.dataStreamListControls.includeStatsSwitchToolTip": "包含统计信息可能会延长重新加载时间",
"xpack.idxMgmt.dataStreamListDescription.learnMoreLinkText": "了解详情。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.cancelButtonLabel": "取消",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionEnabledField": "启用数据保留",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionField": "数据保留",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionFieldNonNegativeError": "需要提供正值。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.dataRetentionFieldRequiredError": "数据保留值必填。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.errorDataRetentionNotification": "更新数据保留时出错:“{error}”",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMButtonLabel": "ILM 策略",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMDescription": "要编辑此数据流的数据保留,必须编辑其关联 {link}。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.fullyManagedByILMTitle": "此数据流及其关联索引由 ILM 管理",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.learnMoreLinkText": "工作原理?",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.saveButtonLabel": "保存",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.someManagedByILMBody": "一个或多个索引由 ILM 策略管理 ({viewAllIndicesLink})。更新此数据流的数据保留不会影响到这些索引。相反,您必须更新 {ilmPolicyLink} 策略。",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.someManagedByILMTitle": "某些索引由 ILM 管理",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.successDataRetentionNotification": "数据保留{disabledDataRetention, plural, one {已禁用} other {已更新} }",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.timeUnitField": "时间单位",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.unitsAriaLabel": "时间单位",
"xpack.idxMgmt.dataStreamsDetailsPanel.editDataRetentionModal.viewAllIndices": "查看索引",
"xpack.idxMgmt.dataStreamsDetailsPanel.manageButtonLabel": "管理",
"xpack.idxMgmt.dataStreamsDetailsPanel.stepLogistics.dataRetentionFieldDecimalError": "此值应为整数。",
Expand Down Expand Up @@ -49743,4 +49736,4 @@
"xpack.watcher.watchEdit.thresholdWatchExpression.aggType.fieldIsRequiredValidationMessage": "此字段必填。",
"xpack.watcher.watcherDescription": "通过创建、管理和监测警报来检测数据中的更改。"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export interface DataStreamsTabTestBed extends TestBed<TestSubjects> {
clickDeleteDataStreamButton: () => void;
clickEditDataRetentionButton: () => void;
clickDetailPanelIndexTemplateLink: () => void;
clickManageDataStreamsButton: () => void;
clickBulkEditDataRetentionButton: () => void;
};
findDeleteActionAt: (index: number) => ReactWrapper;
findDeleteConfirmationModal: () => ReactWrapper;
Expand Down Expand Up @@ -210,6 +212,14 @@ export const setup = async (
component.update();
};

const clickManageDataStreamsButton = () => {
testBed.find('dataStreamActionsPopoverButton').simulate('click');
};

const clickBulkEditDataRetentionButton = () => {
testBed.find('bulkEditDataRetentionButton').simulate('click');
};

const findDetailPanel = () => {
const { find } = testBed;
return find('dataStreamDetailPanel');
Expand Down Expand Up @@ -258,6 +268,8 @@ export const setup = async (
clickDeleteDataStreamButton,
clickEditDataRetentionButton,
clickDetailPanelIndexTemplateLink,
clickManageDataStreamsButton,
clickBulkEditDataRetentionButton,
},
findDeleteActionAt,
findDeleteConfirmationModal,
Expand Down
Loading

0 comments on commit 9b2b922

Please sign in to comment.