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 support for index mode (#197874)](#197874) <!--- 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-10-31T09:25:16Z","message":"[Index Management] Add support for index mode (#197874)\n\nCloses https://github.com/elastic/kibana/issues/195772\r\n\r\n## Summary\r\n\r\nThis PR displays the index mode setting in Index templates (at Review\r\nstep in creation flow and at template details flyout) and Data streams\r\n(in ds table and ds details flyout).\r\n\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 39 18\"\r\nsrc=\"https://github.com/user-attachments/assets/9d40c1cd-d08a-4950-a679-29d9910ee845\">\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 19 05 29\"\r\nsrc=\"https://github.com/user-attachments/assets/463e549d-68cd-4ddf-ae0a-cfe43e47af10\">\r\n\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 41 01\"\r\nsrc=\"https://github.com/user-attachments/assets/4ccf8727-5913-4857-9dc2-48c40da3a356\">\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 41 09\"\r\nsrc=\"https://github.com/user-attachments/assets/a6b6a0a9-7ae2-4201-8ff9-3bead915fb2a\">\r\n\r\n### How to test:\r\n**Creating a Logsdb index template and data stream:**\r\n1. Go to Index Managament -> Index templates and start creating a new\r\ntemplate\r\n2. Add a name and an index pattern `test-logsdb` and then go to the\r\nSettings step\r\n3. Add the setting `\"index.mode\": \"logsdb`.\r\n4. Go to last step (review) and verify that the index mode is correctly\r\ndisplayed in Summary. Save the template.\r\n5. In the template flyout, verify that the index mode displays the\r\ncorrect label.\r\n6. Go to Console and create a data stream that mathes the index pattern\r\nof the created index template: `PUT _data_stream/test-logsdb`\r\n7. Go to Index Management -> Data streams\r\n8. In the data streams table, verify that the index mode column is\r\ncorrect for the new data stream.\r\n9. Open the new data stream and verify that the details flyout displays\r\nthe correct index mode.\r\n\r\n**Creating a Time series index template and data stream:**\r\n1. Go to Index Managament -> Index templates and start creating a new\r\ntemplate\r\n2. Add a name and an index pattern `test-tsds` and then go to the\r\nSettings step\r\n3. Add the setting `\"index.mode\": \"time_series`.\r\n4. For time series index template, we also need to add a mapping with a\r\n`time_series_dimension` property. Go to the Mappings step, click on\r\n\"Load JSON\" and add the following mappings object:\r\n```\r\n{\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"keyword\",\r\n \"time_series_dimension\": true\r\n }\r\n }\r\n}\r\n```\r\n6. Go to last step (review) and verify that the index mode is correctly\r\ndisplayed in Summary. Save the template.\r\n7. In the template flyout, verify that the index mode displays the\r\ncorrect label.\r\n8. Go to Console and create a data stream that mathes the index pattern\r\nof the created index template: `PUT _data_stream/test-tsds`\r\n9. Go to Index Management -> Data streams\r\n10. In the data streams table, verify that the index mode column is\r\ncorrect for the new data stream.\r\n11. Open the new data stream and verify that the details flyout displays\r\nthe correct index mode.\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/7288\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"40ddfbc044c7f9fed5cc39b57ecc7d0c479ea36d","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.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:project-deploy-observability","Team:obs-ux-management","v8.17.0"],"title":"[Index Management] Add support for index mode","number":197874,"url":"https://github.com/elastic/kibana/pull/197874","mergeCommit":{"message":"[Index Management] Add support for index mode (#197874)\n\nCloses https://github.com/elastic/kibana/issues/195772\r\n\r\n## Summary\r\n\r\nThis PR displays the index mode setting in Index templates (at Review\r\nstep in creation flow and at template details flyout) and Data streams\r\n(in ds table and ds details flyout).\r\n\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 39 18\"\r\nsrc=\"https://github.com/user-attachments/assets/9d40c1cd-d08a-4950-a679-29d9910ee845\">\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 19 05 29\"\r\nsrc=\"https://github.com/user-attachments/assets/463e549d-68cd-4ddf-ae0a-cfe43e47af10\">\r\n\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 41 01\"\r\nsrc=\"https://github.com/user-attachments/assets/4ccf8727-5913-4857-9dc2-48c40da3a356\">\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 41 09\"\r\nsrc=\"https://github.com/user-attachments/assets/a6b6a0a9-7ae2-4201-8ff9-3bead915fb2a\">\r\n\r\n### How to test:\r\n**Creating a Logsdb index template and data stream:**\r\n1. Go to Index Managament -> Index templates and start creating a new\r\ntemplate\r\n2. Add a name and an index pattern `test-logsdb` and then go to the\r\nSettings step\r\n3. Add the setting `\"index.mode\": \"logsdb`.\r\n4. Go to last step (review) and verify that the index mode is correctly\r\ndisplayed in Summary. Save the template.\r\n5. In the template flyout, verify that the index mode displays the\r\ncorrect label.\r\n6. Go to Console and create a data stream that mathes the index pattern\r\nof the created index template: `PUT _data_stream/test-logsdb`\r\n7. Go to Index Management -> Data streams\r\n8. In the data streams table, verify that the index mode column is\r\ncorrect for the new data stream.\r\n9. Open the new data stream and verify that the details flyout displays\r\nthe correct index mode.\r\n\r\n**Creating a Time series index template and data stream:**\r\n1. Go to Index Managament -> Index templates and start creating a new\r\ntemplate\r\n2. Add a name and an index pattern `test-tsds` and then go to the\r\nSettings step\r\n3. Add the setting `\"index.mode\": \"time_series`.\r\n4. For time series index template, we also need to add a mapping with a\r\n`time_series_dimension` property. Go to the Mappings step, click on\r\n\"Load JSON\" and add the following mappings object:\r\n```\r\n{\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"keyword\",\r\n \"time_series_dimension\": true\r\n }\r\n }\r\n}\r\n```\r\n6. Go to last step (review) and verify that the index mode is correctly\r\ndisplayed in Summary. Save the template.\r\n7. In the template flyout, verify that the index mode displays the\r\ncorrect label.\r\n8. Go to Console and create a data stream that mathes the index pattern\r\nof the created index template: `PUT _data_stream/test-tsds`\r\n9. Go to Index Management -> Data streams\r\n10. In the data streams table, verify that the index mode column is\r\ncorrect for the new data stream.\r\n11. Open the new data stream and verify that the details flyout displays\r\nthe correct index mode.\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/7288\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"40ddfbc044c7f9fed5cc39b57ecc7d0c479ea36d"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197874","number":197874,"mergeCommit":{"message":"[Index Management] Add support for index mode (#197874)\n\nCloses https://github.com/elastic/kibana/issues/195772\r\n\r\n## Summary\r\n\r\nThis PR displays the index mode setting in Index templates (at Review\r\nstep in creation flow and at template details flyout) and Data streams\r\n(in ds table and ds details flyout).\r\n\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 39 18\"\r\nsrc=\"https://github.com/user-attachments/assets/9d40c1cd-d08a-4950-a679-29d9910ee845\">\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 19 05 29\"\r\nsrc=\"https://github.com/user-attachments/assets/463e549d-68cd-4ddf-ae0a-cfe43e47af10\">\r\n\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 41 01\"\r\nsrc=\"https://github.com/user-attachments/assets/4ccf8727-5913-4857-9dc2-48c40da3a356\">\r\n<img width=\"1523\" alt=\"Screenshot 2024-10-28 at 14 41 09\"\r\nsrc=\"https://github.com/user-attachments/assets/a6b6a0a9-7ae2-4201-8ff9-3bead915fb2a\">\r\n\r\n### How to test:\r\n**Creating a Logsdb index template and data stream:**\r\n1. Go to Index Managament -> Index templates and start creating a new\r\ntemplate\r\n2. Add a name and an index pattern `test-logsdb` and then go to the\r\nSettings step\r\n3. Add the setting `\"index.mode\": \"logsdb`.\r\n4. Go to last step (review) and verify that the index mode is correctly\r\ndisplayed in Summary. Save the template.\r\n5. In the template flyout, verify that the index mode displays the\r\ncorrect label.\r\n6. Go to Console and create a data stream that mathes the index pattern\r\nof the created index template: `PUT _data_stream/test-logsdb`\r\n7. Go to Index Management -> Data streams\r\n8. In the data streams table, verify that the index mode column is\r\ncorrect for the new data stream.\r\n9. Open the new data stream and verify that the details flyout displays\r\nthe correct index mode.\r\n\r\n**Creating a Time series index template and data stream:**\r\n1. Go to Index Managament -> Index templates and start creating a new\r\ntemplate\r\n2. Add a name and an index pattern `test-tsds` and then go to the\r\nSettings step\r\n3. Add the setting `\"index.mode\": \"time_series`.\r\n4. For time series index template, we also need to add a mapping with a\r\n`time_series_dimension` property. Go to the Mappings step, click on\r\n\"Load JSON\" and add the following mappings object:\r\n```\r\n{\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"keyword\",\r\n \"time_series_dimension\": true\r\n }\r\n }\r\n}\r\n```\r\n6. Go to last step (review) and verify that the index mode is correctly\r\ndisplayed in Summary. Save the template.\r\n7. In the template flyout, verify that the index mode displays the\r\ncorrect label.\r\n8. Go to Console and create a data stream that mathes the index pattern\r\nof the created index template: `PUT _data_stream/test-tsds`\r\n9. Go to Index Management -> Data streams\r\n10. In the data streams table, verify that the index mode column is\r\ncorrect for the new data stream.\r\n11. Open the new data stream and verify that the details flyout displays\r\nthe correct index mode.\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/7288\r\n- [x] Any UI touched in this PR is usable by keyboard only (learn more\r\nabout [keyboard accessibility](https://webaim.org/techniques/keyboard/))\r\n- [x] Any UI touched in this PR does not create any new axe failures\r\n(run axe in browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n- [x] This renders correctly on smaller devices using a responsive\r\nlayout. (You can test this [in your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n- [x] This was checked for [cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"40ddfbc044c7f9fed5cc39b57ecc7d0c479ea36d"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elena Stoeva <[email protected]>
- Loading branch information