Skip to content

Relax validation of subobject leaves for flattened fields#2090

Merged
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:keep-3.0.1-exception-object-leaves
Sep 9, 2024
Merged

Relax validation of subobject leaves for flattened fields#2090
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:keep-3.0.1-exception-object-leaves

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Sep 9, 2024

We added some additional validations for subobjects and arrays of objects in #1498, #1489 and related PRs. These validations only apply to packages with package spec starting on 3.0.1.

These tests rely on the structure of documents. With the adoption of features like subobjects: false or synthetic source the structure is lost, and exceptions based on spec version are not working, so the tests fail for cases where they should not for versions of the spec older than 3.0.1. This happens for example in the dns data stream of the network_traffic package when LogsDB is enabled.

@jsoriano jsoriano self-assigned this Sep 9, 2024
@jsoriano
Copy link
Copy Markdown
Member Author

jsoriano commented Sep 9, 2024

test integrations

@jsoriano
Copy link
Copy Markdown
Member Author

jsoriano commented Sep 9, 2024

Testing the change with LogsDB in https://buildkite.com/elastic/integrations/builds/15648. The network traffic package tests should pass.

@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

Created or updated PR in integrations repository to test this version. Check elastic/integrations#11043

@jsoriano jsoriano requested a review from a team September 9, 2024 12:10
@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @jsoriano

@jsoriano jsoriano merged commit 183ba78 into elastic:main Sep 9, 2024
@jsoriano jsoriano deleted the keep-3.0.1-exception-object-leaves branch September 9, 2024 15:08
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.

3 participants