-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Index management] Fix passthrough field bug #193246
[Index management] Fix passthrough field bug #193246
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.
Thanks for patching this up @sabarasaba! Tested locally and I don't see the error anymore. Changes also lgtm.
One thing I noticed though is that if I change the priority
value, the dynamic
property gets deleted. Do you think there might be an easy fix for this to add to this PR?
Screen.Recording.2024-09-23.at.19.15.24.mov
@elasticmachine merge upstream |
Thanks for the review @ElenaStoeva, I've just added another field to take into account the |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @sabarasaba |
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.
Thanks for adding the changes! Tested locally and it works well now.
(cherry picked from commit 99160b6)
(cherry picked from commit 99160b6)
💚 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`: - [[Index management] Fix passthrough field bug (#193246)](#193246) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-26T16:26:51Z","message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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-major","v8.16.0"],"title":"[Index management] Fix passthrough field bug","number":193246,"url":"https://github.com/elastic/kibana/pull/193246","mergeCommit":{"message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9"}},"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/193246","number":193246,"mergeCommit":{"message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <[email protected]>
# Backport This will backport the following commits from `main` to `8.15`: - [[Index management] Fix passthrough field bug (#193246)](#193246) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-26T16:26:51Z","message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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-major","v8.16.0"],"title":"[Index management] Fix passthrough field bug","number":193246,"url":"https://github.com/elastic/kibana/pull/193246","mergeCommit":{"message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9"}},"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/193246","number":193246,"mergeCommit":{"message":"[Index management] Fix passthrough field bug (#193246)","sha":"99160b6f9963c3ba9b3065ae89c9042a44b3c3d9"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Ignacio Rivas <[email protected]>
Fixes #192125
Summary
This PR adds support for allowing
passthrough
field types in index templates, mainly to prevent breaking the UI. Since this is a hidden experimental feature, the field can only be added to an index template mapping through a console call and not through the UI. And when editing an index template that contains a passthrough field this will be partially editable (only the mandatory fieldpriority
can be changed through the UI) and the rest can be updated through console.