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

Relax validation of subobject leaves for flattened fields #2090

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

jsoriano
Copy link
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
Member Author

jsoriano commented Sep 9, 2024

test integrations

@jsoriano
Copy link
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

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
internal/fields/validate.go Outdated Show resolved Hide resolved
internal/fields/validate_test.go Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

@jsoriano jsoriano merged commit 183ba78 into elastic:main Sep 9, 2024
3 checks passed
@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