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
…200776) # Backport This will backport the following commits from `main` to `8.x`: - [[Mappings Editor] Add support for synthetic _source (#199854)](#199854) <!--- 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-11-19T16:49:50Z","message":"[Mappings Editor] Add support for synthetic _source (#199854)\n\nCloses https://github.com/elastic/kibana/issues/198621\r\n\r\n## Summary\r\n\r\nThis PR adds support for the synthetic _source field in the mappings\r\nAdvanced options.\r\n\r\nStored option:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 19\"\r\nsrc=\"https://github.com/user-attachments/assets/086f7a3e-9ca1-42de-9f9c-d3599d839ccf\">\r\n\r\nSynthetic option selected:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 27\"\r\nsrc=\"https://github.com/user-attachments/assets/3700bced-212a-4378-b51a-ab7a0f4f7b99\">\r\n\r\nDisabled option selected:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 36\"\r\nsrc=\"https://github.com/user-attachments/assets/c7ddcbae-7c78-4477-824e-99b144a1f750\">\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/399d0f95-a5dd-4874-bb8c-e95d6ed38465\r\n\r\n\r\n\r\n\r\nHow to test:\r\n1. Start Es with `yarn es snapshot --license` (we need Enterprise\r\nlicense to see the Synthetic source option) and Kibana with `yarn start`\r\n2. Go to Index templates/Component templates and start creating a\r\ntemplate\r\n3. At the Mappings step, go to Advanced options.\r\n4. Verify that selecting a _source field option translates to the\r\ncorrect Es request.\r\n5. In Index templates form, verify that the default _source option\r\ndepends on the index mode selected in the Logistics step. For LogsDB and\r\nTime series index mode, the default should be synthetic mode; otherwise,\r\nthe stored option.\r\n6. Verify that in Basic license, the synthetic option is not displayed.\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] 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 <42973632+kibanamachine@users.noreply.github.com>","sha":"8be679ae20fb7f5c41ccb3554b6db3dc2cad0678","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana Management","release_note:skip","Feature:Mappings Editor","v9.0.0","backport:prev-minor","v8.17.0"],"title":"[Mappings Editor] Add support for synthetic _source","number":199854,"url":"https://github.com/elastic/kibana/pull/199854","mergeCommit":{"message":"[Mappings Editor] Add support for synthetic _source (#199854)\n\nCloses https://github.com/elastic/kibana/issues/198621\r\n\r\n## Summary\r\n\r\nThis PR adds support for the synthetic _source field in the mappings\r\nAdvanced options.\r\n\r\nStored option:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 19\"\r\nsrc=\"https://github.com/user-attachments/assets/086f7a3e-9ca1-42de-9f9c-d3599d839ccf\">\r\n\r\nSynthetic option selected:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 27\"\r\nsrc=\"https://github.com/user-attachments/assets/3700bced-212a-4378-b51a-ab7a0f4f7b99\">\r\n\r\nDisabled option selected:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 36\"\r\nsrc=\"https://github.com/user-attachments/assets/c7ddcbae-7c78-4477-824e-99b144a1f750\">\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/399d0f95-a5dd-4874-bb8c-e95d6ed38465\r\n\r\n\r\n\r\n\r\nHow to test:\r\n1. Start Es with `yarn es snapshot --license` (we need Enterprise\r\nlicense to see the Synthetic source option) and Kibana with `yarn start`\r\n2. Go to Index templates/Component templates and start creating a\r\ntemplate\r\n3. At the Mappings step, go to Advanced options.\r\n4. Verify that selecting a _source field option translates to the\r\ncorrect Es request.\r\n5. In Index templates form, verify that the default _source option\r\ndepends on the index mode selected in the Logistics step. For LogsDB and\r\nTime series index mode, the default should be synthetic mode; otherwise,\r\nthe stored option.\r\n6. Verify that in Basic license, the synthetic option is not displayed.\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] 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 <42973632+kibanamachine@users.noreply.github.com>","sha":"8be679ae20fb7f5c41ccb3554b6db3dc2cad0678"}},"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/199854","number":199854,"mergeCommit":{"message":"[Mappings Editor] Add support for synthetic _source (#199854)\n\nCloses https://github.com/elastic/kibana/issues/198621\r\n\r\n## Summary\r\n\r\nThis PR adds support for the synthetic _source field in the mappings\r\nAdvanced options.\r\n\r\nStored option:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 19\"\r\nsrc=\"https://github.com/user-attachments/assets/086f7a3e-9ca1-42de-9f9c-d3599d839ccf\">\r\n\r\nSynthetic option selected:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 27\"\r\nsrc=\"https://github.com/user-attachments/assets/3700bced-212a-4378-b51a-ab7a0f4f7b99\">\r\n\r\nDisabled option selected:\r\n<img width=\"1184\" alt=\"Screenshot 2024-11-14 at 19 19 36\"\r\nsrc=\"https://github.com/user-attachments/assets/c7ddcbae-7c78-4477-824e-99b144a1f750\">\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/399d0f95-a5dd-4874-bb8c-e95d6ed38465\r\n\r\n\r\n\r\n\r\nHow to test:\r\n1. Start Es with `yarn es snapshot --license` (we need Enterprise\r\nlicense to see the Synthetic source option) and Kibana with `yarn start`\r\n2. Go to Index templates/Component templates and start creating a\r\ntemplate\r\n3. At the Mappings step, go to Advanced options.\r\n4. Verify that selecting a _source field option translates to the\r\ncorrect Es request.\r\n5. In Index templates form, verify that the default _source option\r\ndepends on the index mode selected in the Logistics step. For LogsDB and\r\nTime series index mode, the default should be synthetic mode; otherwise,\r\nthe stored option.\r\n6. Verify that in Basic license, the synthetic option is not displayed.\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] 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 <42973632+kibanamachine@users.noreply.github.com>","sha":"8be679ae20fb7f5c41ccb3554b6db3dc2cad0678"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
- Loading branch information