forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Fix incorrect count of agents in bulk actions (elastic#175318)
Fixes elastic#171914 ## Summary Fix a small issue occurring when there are inactive agents, both regular and managed. Another PR with some refactoring for this component will follow. ### Repro steps - Enroll fleet server on fleet-server-policy - make sure to have two inactive fleet server agents on this policy as well - Enroll ~20 agents with horde and make them inactive - Make fleet server policy "managed" - Select "inactive" in the status filter - Click on "Select agents on all pages" - The bulk actions shouldn't report negative actions. If the count is 0, the actions will appear disabled #### Before ![Screenshot 2024-01-22 at 15 59 42](https://github.com/elastic/kibana/assets/16084106/cb8c6c80-b23f-4415-af2a-b4de8ae387f6) #### After ![Screenshot 2024-01-24 at 15 53 53](https://github.com/elastic/kibana/assets/16084106/6b020016-6171-43d7-bc12-685bf01b7989) ### 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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
b866c28
commit 01ba067
Showing
4 changed files
with
68 additions
and
9 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