Open amolnater-qasource opened 1 year ago
Pinging @elastic/fleet (Team:Fleet)
@manishgupta-qasource Please review.
Secondary review for this ticket is Done
I think this is the same issue as https://github.com/elastic/kibana/issues/145094, related to "Upgrade available" feature.
Closing a duplicate of https://github.com/elastic/kibana/issues/145094
Reopening this as this is bug has persisted after https://github.com/elastic/kibana/pull/177035 was merged and backported.
This should be a quick fix: the agent count used in the Actions menu is calculated as: https://github.com/elastic/kibana/blob/b0348b0f50238801f90347cbdb9bb136081dc7e2/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/components/bulk_actions.tsx#L93-L96
The issue arises in bulk selection mode when managed agents are filtered out.
Steps to reproduce:
Suggested fix: totalManagedAgentIds
should respect filtering:
https://github.com/elastic/kibana/blob/b0348b0f50238801f90347cbdb9bb136081dc7e2/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_fetch_agents_data.tsx#L226-L228
Kibana Build details:
Host OS and Browser version: All, All
Preconditions:
Steps to reproduce:
Upgrade available
andSelect everything on all pages
filters.Expected: Accurate count should be visible under Bulk actions when
Select everything on all pages
andUpgrade available
filter is selected.Note:
Screen Recording:
https://github.com/elastic/kibana/assets/77374876/cc99785a-faf3-4735-9c4e-057c0cdf9ea7