Commit graph

4 commits

Author SHA1 Message Date
Kevin Lacabane
c9e26a49d1
[eem] fix flaky _count test (#204399)
Closes https://github.com/elastic/kibana/issues/204323
2024-12-16 17:40:14 +01:00
Kibana Machine
0e3eb00a9f skip failing test suite (#204323) 2024-12-17 00:37:34 +11:00
Kevin Lacabane
9a8ed0d135
[eem] _count guards against no valid sources (#204224)
The query generation expects at least 1 source to be passed
2024-12-14 11:14:29 +01:00
Kevin Lacabane
03506185f9
[eem] _count api (#203605)
implements `countEntities` API

the query to count a single-source definition is straightforward but
gets tricky when sources > 1 because we have to resolve entity ids to
avoid counting duplicates. I've reused the entity.id/source eval logic
implemented here
https://github.com/elastic/elastic-entity-model/issues/202#issuecomment-2500608664

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-12 15:25:20 +01:00