Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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":"59341489+ElenaStoeva@users.noreply.github.com"},"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 <42973632+kibanamachine@users.noreply.github.com>","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 <42973632+kibanamachine@users.noreply.github.com>","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 <42973632+kibanamachine@users.noreply.github.com>","sha":"f72b63f3b7c9575605b30d9dcffeec6d9d68574e"}}]}] BACKPORT--> --------- Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com> Co-authored-by: Matthew Kime <matt@mattki.me>
- Loading branch information