Skip to content

Preserve empty untyped arrays when reifying#189

Merged
kvch merged 6 commits intoelastic:masterfrom
pebrc:fix-empty-arr
Nov 10, 2021
Merged

Preserve empty untyped arrays when reifying#189
kvch merged 6 commits intoelastic:masterfrom
pebrc:fix-empty-arr

Conversation

@pebrc
Copy link
Copy Markdown
Contributor

@pebrc pebrc commented Oct 15, 2021

Fixes #188

This adds a special case for empty arrays when reifying configuration objects during Unpack. This is a breaking change compared to existing behaviour as visible in the test cases I adjusted. The original issue #160 that introduced said tests is however still addressed.

@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Oct 15, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 4 min 25 sec

@thbkrkr

This comment has been minimized.

@kuisathaverat kuisathaverat requested review from a team, jsoriano and kvch and removed request for jsoriano and kvch November 2, 2021 11:53
Co-authored-by: Ivan Fernandez Calvo <kuisathaverat@users.noreply.github.com>
@ruflin ruflin added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Nov 3, 2021
@ruflin
Copy link
Copy Markdown
Contributor

ruflin commented Nov 3, 2021

@kvch or @faec Could one of you take a look at this change?

@kvch
Copy link
Copy Markdown
Contributor

kvch commented Nov 5, 2021

@ruflin We should probably create a new release and adopt it in Beats soon.

@ruflin
Copy link
Copy Markdown
Contributor

ruflin commented Nov 5, 2021

@kvch SGTM, will you take care of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty arrays are turned into nil

6 participants