-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow data Streams enrich policies #200903
Allow data Streams enrich policies #200903
Conversation
Pinging @elastic/kibana-management (Team:Kibana Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy LGTM 🌆 Just some super small suggestions
noMatches: i18n.translate( | ||
'xpack.idxMgmt.enrichPolicyCreate.indicesSelector.dataStream.noMatchingOption', | ||
{ | ||
defaultMessage: 'No data stream match your search criteria.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultMessage: 'No data stream match your search criteria.', | |
defaultMessage: 'No data streams match your search criteria.', |
Making it parallel with plural "indices"
sourcePlaceholder: i18n.translate( | ||
'xpack.idxMgmt.enrichPolicyCreate.indicesSelector.placeholder', | ||
{ | ||
defaultMessage: 'Select source indices and/or data streams.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultMessage: 'Select source indices and/or data streams.', | |
defaultMessage: 'Select source indices and data streams.', |
or "or", but I'd prefer to not use "and/or"
A couple of thoughts - Do we want to separate indices and data streams in the list for selection? I think it might make more sense to show them alphabetized together. The resolve api can get both indices and data streams. It also gets aliases. https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-index-api.html The We should probably be hiding system and hidden indices in this list. @jovana-andjelkovic is probably the best person to weigh in |
Thank you for your comment @mattkime! The groups functionality was the proposal that @alisonelizabeth and @jovana-andjelkovic agreed here, but I lack the deeper knowledge to judge whether it makes sense to show them together or separately. I'll do some research to have an opinion. |
@SoniaSanzV It looks like there's already been conversation on how the indices and data streams are ordered so I consider the issue resolved and your implementation to be correct. We should still consider hiding system and hidden indices. |
0f4325b
to
fdea243
Compare
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @SoniaSanzV! Changes lgtm, tested locally and works great 🚀 Left one nit and I also think we should add an api integration test for the new server route, let me know what you think!
@@ -95,15 +95,15 @@ export const configurationFormSchema: FormSchema = { | |||
|
|||
sourceIndices: { | |||
label: i18n.translate('xpack.idxMgmt.enrichPolicyCreate.configurationStep.sourceIndicesLabel', { | |||
defaultMessage: 'Source indices', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe we should rename the key of the i18n.translate to be sourceLabel instead of sourceIndicesLabel (same for the error)
@@ -105,6 +111,33 @@ export function registerCreateRoute({ router, lib: { handleEsError } }: RouteDep | |||
} | |||
} | |||
); | |||
router.post( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
139df16
to
f167983
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest changes lgtm, nice work!
f167983
to
21d71a2
Compare
@SoniaSanzV I wonder if it's confusing to have "Source" as input field, and its values everywhere else referred to as "Source indices"? Not sure if |
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @SoniaSanzV |
Starting backport for target branches: 8.x |
Closes [elastic#187438](elastic#187438) ## Summary This PR introduces the data streams as source indices in the enrich policies. For that, it uses the groups functionality, so the indices are separated from the data streams. https://github.com/user-attachments/assets/1716d57b-b8c7-417a-b75c-33378f3269ca ### Strings I've changed some of the existing strings but left other as they were. I'll be happy to also change those if folks feel that should be the case. I've added a hint text and changed the label for the box in the creation step (marked in yellow) <img width="400" alt="Screenshot 2024-11-20 at 12 35 32" src="https://github.com/user-attachments/assets/794a7063-3f75-4f3d-996c-12ca8b9ed9b6"> I haven't change the label for the indices group (green) and I've followed the same structure for the new group category (yellow) <table> <tr> <td style="padding-right: 10px;"> <img alt="Screenshot 2024-11-20 at 12 37 51" src="https://github.com/user-attachments/assets/89a554a6-57e4-4208-bde4-d4868dec11bc"> </td> <td> <img alt="Screenshot 2024-11-20 at 12 38 16" src="https://github.com/user-attachments/assets/d82c7ae3-79c9-432e-aa3c-8ca02502e18f"> </td> </tr> </table> I haven't change the 'Source indices' text in the Summary (green) because in the request tab the correspondan field in the request is indices (blue) <table> <tr> <td style="padding-right: 10px;"> <img alt="Screenshot 2024-11-20 at 12 38 53" src="https://github.com/user-attachments/assets/80623ded-11e3-4661-9fa8-ad84182a72a3"> </td> <td> <img alt="Screenshot 2024-11-20 at 12 39 19" src="https://github.com/user-attachments/assets/f2ad6449-1a3a-448a-8598-c8c9eb41a717"> </td> </tr> </table> I also haven't change the 'Source indices' text in the table or in the detail flyout (green) since both indices and data streams are treated like indices. <table> <tr> <td style="padding-right: 10px;"> <img width="898" alt="Screenshot 2024-11-20 at 12 39 52" src="https://github.com/user-attachments/assets/8165fe3f-0286-4ad1-a40d-44e19e4eef29"> </td> <td> <img width="892" alt="Screenshot 2024-11-20 at 12 40 25" src="https://github.com/user-attachments/assets/bb046aa4-2a6c-40e0-bb32-ecb4a13adea9"> </td> </tr> </table> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_node:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 8629b1d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [Allow data Streams enrich policies (#200903)](#200903) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sonia Sanz Vivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-27T18:50:35Z","message":"Allow data Streams enrich policies (#200903)\n\nCloses [#187438](https://github.com/elastic/kibana/issues/187438)\r\n\r\n## Summary\r\n\r\nThis PR introduces the data streams as source indices in the enrich\r\npolicies. For that, it uses the groups functionality, so the indices are\r\nseparated from the data streams.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/1716d57b-b8c7-417a-b75c-33378f3269ca\r\n\r\n### Strings\r\nI've changed some of the existing strings but left other as they were.\r\nI'll be happy to also change those if folks feel that should be the\r\ncase.\r\n\r\nI've added a hint text and changed the label for the box in the creation\r\nstep (marked in yellow)\r\n<img width=\"400\" alt=\"Screenshot 2024-11-20 at 12 35 32\"\r\nsrc=\"https://github.com/user-attachments/assets/794a7063-3f75-4f3d-996c-12ca8b9ed9b6\">\r\n\r\nI haven't change the label for the indices group (green) and I've\r\nfollowed the same structure for the new group category (yellow)\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img alt=\"Screenshot 2024-11-20 at 12 37 51\"\r\nsrc=\"https://github.com/user-attachments/assets/89a554a6-57e4-4208-bde4-d4868dec11bc\">\r\n </td>\r\n <td>\r\n<img alt=\"Screenshot 2024-11-20 at 12 38 16\"\r\nsrc=\"https://github.com/user-attachments/assets/d82c7ae3-79c9-432e-aa3c-8ca02502e18f\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\nI haven't change the 'Source indices' text in the Summary (green)\r\nbecause in the request tab the correspondan field in the request is\r\nindices (blue)\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img alt=\"Screenshot 2024-11-20 at 12 38 53\"\r\nsrc=\"https://github.com/user-attachments/assets/80623ded-11e3-4661-9fa8-ad84182a72a3\">\r\n </td>\r\n <td>\r\n<img alt=\"Screenshot 2024-11-20 at 12 39 19\"\r\nsrc=\"https://github.com/user-attachments/assets/f2ad6449-1a3a-448a-8598-c8c9eb41a717\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\nI also haven't change the 'Source indices' text in the table or in the\r\ndetail flyout (green) since both indices and data streams are treated\r\nlike indices.\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img width=\"898\" alt=\"Screenshot 2024-11-20 at 12 39 52\"\r\nsrc=\"https://github.com/user-attachments/assets/8165fe3f-0286-4ad1-a40d-44e19e4eef29\">\r\n </td>\r\n <td>\r\n<img width=\"892\" alt=\"Screenshot 2024-11-20 at 12 40 25\"\r\nsrc=\"https://github.com/user-attachments/assets/bb046aa4-2a6c-40e0-bb32-ecb4a13adea9\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [ ] 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- [ ]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n- [ ] [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- [ ] If a plugin configuration key changed, check if it needs to be\r\nallowlisted in the cloud and added to the [docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n- [ ] This was checked for breaking HTTP API changes, and any breaking\r\nchanges have been approved by the breaking-change committee. The\r\n`release_note:breaking` label should be applied in these situations.\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n- [ ] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_node:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8629b1da8e392880632b197b4d5b031353a39f28","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"],"title":"Allow data Streams enrich policies","number":200903,"url":"https://github.com/elastic/kibana/pull/200903","mergeCommit":{"message":"Allow data Streams enrich policies (#200903)\n\nCloses [#187438](https://github.com/elastic/kibana/issues/187438)\r\n\r\n## Summary\r\n\r\nThis PR introduces the data streams as source indices in the enrich\r\npolicies. For that, it uses the groups functionality, so the indices are\r\nseparated from the data streams.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/1716d57b-b8c7-417a-b75c-33378f3269ca\r\n\r\n### Strings\r\nI've changed some of the existing strings but left other as they were.\r\nI'll be happy to also change those if folks feel that should be the\r\ncase.\r\n\r\nI've added a hint text and changed the label for the box in the creation\r\nstep (marked in yellow)\r\n<img width=\"400\" alt=\"Screenshot 2024-11-20 at 12 35 32\"\r\nsrc=\"https://github.com/user-attachments/assets/794a7063-3f75-4f3d-996c-12ca8b9ed9b6\">\r\n\r\nI haven't change the label for the indices group (green) and I've\r\nfollowed the same structure for the new group category (yellow)\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img alt=\"Screenshot 2024-11-20 at 12 37 51\"\r\nsrc=\"https://github.com/user-attachments/assets/89a554a6-57e4-4208-bde4-d4868dec11bc\">\r\n </td>\r\n <td>\r\n<img alt=\"Screenshot 2024-11-20 at 12 38 16\"\r\nsrc=\"https://github.com/user-attachments/assets/d82c7ae3-79c9-432e-aa3c-8ca02502e18f\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\nI haven't change the 'Source indices' text in the Summary (green)\r\nbecause in the request tab the correspondan field in the request is\r\nindices (blue)\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img alt=\"Screenshot 2024-11-20 at 12 38 53\"\r\nsrc=\"https://github.com/user-attachments/assets/80623ded-11e3-4661-9fa8-ad84182a72a3\">\r\n </td>\r\n <td>\r\n<img alt=\"Screenshot 2024-11-20 at 12 39 19\"\r\nsrc=\"https://github.com/user-attachments/assets/f2ad6449-1a3a-448a-8598-c8c9eb41a717\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\nI also haven't change the 'Source indices' text in the table or in the\r\ndetail flyout (green) since both indices and data streams are treated\r\nlike indices.\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img width=\"898\" alt=\"Screenshot 2024-11-20 at 12 39 52\"\r\nsrc=\"https://github.com/user-attachments/assets/8165fe3f-0286-4ad1-a40d-44e19e4eef29\">\r\n </td>\r\n <td>\r\n<img width=\"892\" alt=\"Screenshot 2024-11-20 at 12 40 25\"\r\nsrc=\"https://github.com/user-attachments/assets/bb046aa4-2a6c-40e0-bb32-ecb4a13adea9\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [ ] 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- [ ]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n- [ ] [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- [ ] If a plugin configuration key changed, check if it needs to be\r\nallowlisted in the cloud and added to the [docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n- [ ] This was checked for breaking HTTP API changes, and any breaking\r\nchanges have been approved by the breaking-change committee. The\r\n`release_note:breaking` label should be applied in these situations.\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n- [ ] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_node:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8629b1da8e392880632b197b4d5b031353a39f28"}},"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/200903","number":200903,"mergeCommit":{"message":"Allow data Streams enrich policies (#200903)\n\nCloses [#187438](https://github.com/elastic/kibana/issues/187438)\r\n\r\n## Summary\r\n\r\nThis PR introduces the data streams as source indices in the enrich\r\npolicies. For that, it uses the groups functionality, so the indices are\r\nseparated from the data streams.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/1716d57b-b8c7-417a-b75c-33378f3269ca\r\n\r\n### Strings\r\nI've changed some of the existing strings but left other as they were.\r\nI'll be happy to also change those if folks feel that should be the\r\ncase.\r\n\r\nI've added a hint text and changed the label for the box in the creation\r\nstep (marked in yellow)\r\n<img width=\"400\" alt=\"Screenshot 2024-11-20 at 12 35 32\"\r\nsrc=\"https://github.com/user-attachments/assets/794a7063-3f75-4f3d-996c-12ca8b9ed9b6\">\r\n\r\nI haven't change the label for the indices group (green) and I've\r\nfollowed the same structure for the new group category (yellow)\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img alt=\"Screenshot 2024-11-20 at 12 37 51\"\r\nsrc=\"https://github.com/user-attachments/assets/89a554a6-57e4-4208-bde4-d4868dec11bc\">\r\n </td>\r\n <td>\r\n<img alt=\"Screenshot 2024-11-20 at 12 38 16\"\r\nsrc=\"https://github.com/user-attachments/assets/d82c7ae3-79c9-432e-aa3c-8ca02502e18f\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\nI haven't change the 'Source indices' text in the Summary (green)\r\nbecause in the request tab the correspondan field in the request is\r\nindices (blue)\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img alt=\"Screenshot 2024-11-20 at 12 38 53\"\r\nsrc=\"https://github.com/user-attachments/assets/80623ded-11e3-4661-9fa8-ad84182a72a3\">\r\n </td>\r\n <td>\r\n<img alt=\"Screenshot 2024-11-20 at 12 39 19\"\r\nsrc=\"https://github.com/user-attachments/assets/f2ad6449-1a3a-448a-8598-c8c9eb41a717\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\nI also haven't change the 'Source indices' text in the table or in the\r\ndetail flyout (green) since both indices and data streams are treated\r\nlike indices.\r\n<table>\r\n <tr>\r\n <td style=\"padding-right: 10px;\">\r\n<img width=\"898\" alt=\"Screenshot 2024-11-20 at 12 39 52\"\r\nsrc=\"https://github.com/user-attachments/assets/8165fe3f-0286-4ad1-a40d-44e19e4eef29\">\r\n </td>\r\n <td>\r\n<img width=\"892\" alt=\"Screenshot 2024-11-20 at 12 40 25\"\r\nsrc=\"https://github.com/user-attachments/assets/bb046aa4-2a6c-40e0-bb32-ecb4a13adea9\">\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following conditions. \r\n\r\nReviewers should verify this PR satisfies this list as well.\r\n\r\n- [ ] 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- [ ]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\r\n- [ ] [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- [ ] If a plugin configuration key changed, check if it needs to be\r\nallowlisted in the cloud and added to the [docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n- [ ] This was checked for breaking HTTP API changes, and any breaking\r\nchanges have been approved by the breaking-change committee. The\r\n`release_note:breaking` label should be applied in these situations.\r\n- [ ] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n- [ ] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_node:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"8629b1da8e392880632b197b4d5b031353a39f28"}}]}] BACKPORT--> Co-authored-by: Sonia Sanz Vivas <[email protected]>
Sorry @jovana-andjelkovic , I had this PR set to auto-merge and I miss your comment before it was merged. I've taken a few screenshots with much more specific names that I can answer what you are asking. I don't think having "Source" in the first step is bad, since is the only place we separate the concept of index and datastream. From that point, everything is treated as an index. But we can come back to te previous copy if you think is better. Or even do what Matt suggested here. |
@SoniaSanzV thank you for these screenshots, super helpful! Yeah I agree with @mattkime that "based on your.." feels odd, I would rather go with just:
I'm a bit confused why we show in response both indices and data streams under I wouldn't change back the name of the source field, it feels more correct to me. Anyways, I don't think it's a huge deal if we leave it as is, but if we decide to open separate issue to look at the copy, let's consult a tech writer. |
Closes [elastic#187438](elastic#187438) ## Summary This PR introduces the data streams as source indices in the enrich policies. For that, it uses the groups functionality, so the indices are separated from the data streams. https://github.com/user-attachments/assets/1716d57b-b8c7-417a-b75c-33378f3269ca ### Strings I've changed some of the existing strings but left other as they were. I'll be happy to also change those if folks feel that should be the case. I've added a hint text and changed the label for the box in the creation step (marked in yellow) <img width="400" alt="Screenshot 2024-11-20 at 12 35 32" src="https://github.com/user-attachments/assets/794a7063-3f75-4f3d-996c-12ca8b9ed9b6"> I haven't change the label for the indices group (green) and I've followed the same structure for the new group category (yellow) <table> <tr> <td style="padding-right: 10px;"> <img alt="Screenshot 2024-11-20 at 12 37 51" src="https://github.com/user-attachments/assets/89a554a6-57e4-4208-bde4-d4868dec11bc"> </td> <td> <img alt="Screenshot 2024-11-20 at 12 38 16" src="https://github.com/user-attachments/assets/d82c7ae3-79c9-432e-aa3c-8ca02502e18f"> </td> </tr> </table> I haven't change the 'Source indices' text in the Summary (green) because in the request tab the correspondan field in the request is indices (blue) <table> <tr> <td style="padding-right: 10px;"> <img alt="Screenshot 2024-11-20 at 12 38 53" src="https://github.com/user-attachments/assets/80623ded-11e3-4661-9fa8-ad84182a72a3"> </td> <td> <img alt="Screenshot 2024-11-20 at 12 39 19" src="https://github.com/user-attachments/assets/f2ad6449-1a3a-448a-8598-c8c9eb41a717"> </td> </tr> </table> I also haven't change the 'Source indices' text in the table or in the detail flyout (green) since both indices and data streams are treated like indices. <table> <tr> <td style="padding-right: 10px;"> <img width="898" alt="Screenshot 2024-11-20 at 12 39 52" src="https://github.com/user-attachments/assets/8165fe3f-0286-4ad1-a40d-44e19e4eef29"> </td> <td> <img width="892" alt="Screenshot 2024-11-20 at 12 40 25" src="https://github.com/user-attachments/assets/bb046aa4-2a6c-40e0-bb32-ecb4a13adea9"> </td> </tr> </table> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_node:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Closes #187438
Summary
This PR introduces the data streams as source indices in the enrich policies. For that, it uses the groups functionality, so the indices are separated from the data streams.
datastreams_enrich_policy.mov
Strings
I've changed some of the existing strings but left other as they were. I'll be happy to also change those if folks feel that should be the case.
I've added a hint text and changed the label for the box in the creation step (marked in yellow)
I haven't change the label for the indices group (green) and I've followed the same structure for the new group category (yellow)
I haven't change the 'Source indices' text in the Summary (green) because in the request tab the correspondan field in the request is indices (blue)
I also haven't change the 'Source indices' text in the table or in the detail flyout (green) since both indices and data streams are treated like indices.
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breaking
label should be applied in these situations.release_node:*
label is applied per the guidelines