Skip to content

Conversation

@axw
Copy link
Member

@axw axw commented Nov 20, 2023

ApproveFields approves flattened fields, including runtime fields, rather than document _source.

We also add cmd/flatten-approvals for converting existing _source-based approvals to flattened fields. The results may not be perfectly aligned with the results of using ApproveFields (e.g. we can't materialise runtime fields from source in this way), but this gives us a way to perform a mechanical translation before switching to ApproveFields, minimising the non-mechanical diff.

Required for elastic/apm-server#12066, which moves some processing out of ingest pipelines and into indexed runtime fields.

ApproveFields approves flattened fields, including
runtime fields, rather than document _source.

We also add cmd/flatten-approvals for converting
existing _source-based approvals to flattened
fields. They may not be perfectly aligned (e.g.
we can't materialise runtime fields from source
in this way), but this gives us a way to perform
a mechanical translation before switching to
ApproveFields, minimising the non-mechanical diff.
@axw axw marked this pull request as ready for review November 23, 2023 06:59
@axw axw requested a review from a team as a code owner November 23, 2023 06:59
@axw axw merged commit d85ff07 into elastic:main Nov 23, 2023
@axw axw deleted the approvefields branch November 23, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants