Skip to content
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

Add ApproveFields for approving flattened fields #30

Merged
merged 1 commit into from
Nov 23, 2023

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
3 checks passed
@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