-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] separated
showInactive
from unenrolled status filter (#187960)
## Summary Closes #186065 The `showInactive:true` flag in query agents logic filtered out inactive and unenrolled agents. This is not working correctly in a few places where we only want to include inactive, not unenrolled: agent count per policy (the linked reported issue), taking actions. Instead, changed the meaning of `showInactive:true` to only filter out inactive agents and filter out `unenrolled` unless the `kuery` explicitly contains it. In most functionality we ignore unenrolled agents, only need to query them when looking at Agent list without any status filters or the UI filter includes `unenrolled` status. <img width="1402" alt="image" src="https://github.com/elastic/kibana/assets/90178898/38bebbc6-db04-45d2-a3a5-fb1c4b94af7e"> <img width="1157" alt="image" src="https://github.com/elastic/kibana/assets/90178898/ca3c388b-53f0-459d-826e-3f4f9353ccc1"> <img width="1242" alt="image" src="https://github.com/elastic/kibana/assets/90178898/37ecddc3-c038-4423-9a52-84a14a1ced52"> Agent count includes inactive, but filters out unenrolled. <img width="1249" alt="image" src="https://github.com/elastic/kibana/assets/90178898/21e8cf89-4219-48a0-a374-def3dd28d86f"> When clicking on the agent count, it navigates to Agent list, including inactive. <img width="1621" alt="image" src="https://github.com/user-attachments/assets/59c44560-801d-4232-aaff-bb1ee245a153"> <img width="1742" alt="image" src="https://github.com/user-attachments/assets/57f91bf5-617b-4365-af79-8b0ad3719bc7"> <img width="1789" alt="image" src="https://github.com/user-attachments/assets/fc857dec-1e39-4e12-b242-441f818b1ae0"> ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information
1 parent
3ac173e
commit 9d4c061
Showing
7 changed files
with
103 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters