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

[8.16] [Entity Store] Bugfix: Double nested arrays (#197589) #197682

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.16:

Questions ?

Please refer to the Backport tool documentation

## Summary

Entities were appearing in the entity store with double nested arrays
like below.

The issue was that the arrays changed from `List` to `Set` type and the
code only checked for lists. Using `Collection` has fixed this.

```
        "_index": ".entities.v1.latest.security_host_default",
        "_id": "c03w7AZsMkm_obWF2HZEirgAAAAAAAAA",
        "_score": 1,
        "_source": {
          "host": {
            "hostname": [
              [
                "small-host-1.example.small.com"
              ]
            ],
            "domain": [
              [
                "example.small.com"
              ]
            ],
            "ip": [
              [
                "192.168.1.1",
                "192.168.1.0",
                "192.168.1.3",
                "192.168.1.2",
                "192.168.1.9",
                "192.168.1.8",
                "192.168.1.5",
                "192.168.1.4",
                "192.168.1.7",
                "192.168.1.6"
              ]
            ],
            ```

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 855456b)
@kibanamachine kibanamachine merged commit a3c1646 into elastic:8.16 Oct 24, 2024
37 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @hop-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants