[Index pattern] Add support for composite runtime fields#103879
[Index pattern] Add support for composite runtime fields#103879sebelga wants to merge 20 commits intoelastic:masterfrom
Conversation
There was a problem hiding this comment.
This is not a breaking change as EnhancedRuntimeField has added prop (no prop has been removed or renamed)
There was a problem hiding this comment.
We prevent deleting a subField directly as this will have to be done by editing the runtime composite script.
There was a problem hiding this comment.
We prevent editing a subField directly as this will have to be done by editing the runtime composite script.
There was a problem hiding this comment.
To keep consistency with ES we will always return an array, even if it is for one field created.
a197112 to
fd89bb9
Compare
b250f58 to
feaa415
Compare
0b3357d to
9244923
Compare
💔 Build Failed
Failed CI Steps
Test FailuresKibana Pipeline / jest / Jest Tests.src/plugins/data/common/index_patterns/index_patterns.IndexPattern toSpec should match snapshotStandard OutStack TraceKibana Pipeline / jest / Jest Tests.src/plugins/data/common/index_patterns/index_patterns.IndexPatterns savedObjectToSpecStandard OutStack TraceKibana Pipeline / jest / Jest Tests.src/plugins/discover/public/application/apps/main/components/sidebar.Discover IndexPattern Management renders correctlyStandard OutStack Traceand 3 more failures, only showing the first 3. Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
|
Closing in favour of #110226. |
Fixes #99177
This PR is the implementation of the #99462 discussion.
It is not yet possible to fully test this PR in Discover as ES does not support the
objectruntime field type. But once they do, I expect very few changes in this PR.Currently if we navigate in Discover we don't see the subFields because they don't exist in the search response. And the parent object shows up in the list of fields because I temporarily hardcode it to the
keywordtype to avoid the search request to throw an error.In the index pattern management we do see the subFields as they are added to the list from the
runtimeFieldMap