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.x] [EDR Workflows] Fix agent count for single agent policies (#194294) #194351

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…4294)

https://github.com/user-attachments/assets/2b64c1e0-0e6d-4ef5-952d-e4364b4403c4

The PR elastic#193705 introduced an issue when counting active agents for
integration policies with only one agent policy assigned. In such cases,
`query.policyIds` was treated as a single string instead of an array of
strings (as expected with multiple agent policy ids like
`/?policyIds=x&policyIds=y`). This PR resolves the issue by ensuring
consistent handling of policyIds, regardless of the number of associated
agent policies.

(cherry picked from commit 847285b)
@kibanamachine kibanamachine enabled auto-merge (squash) September 27, 2024 21:27
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Sep 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibanamachine kibanamachine merged commit 3f3c093 into elastic:8.x Sep 27, 2024
36 checks passed
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 20.5MB 20.5MB +80.0B
Unknown metric groups

References to deprecated APIs

id before after diff
securitySolution 459 457 -2

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @szwarckonrad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants