elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.35k stars 7.98k forks source link

[UII] Show count of eligible agents when doing bulk upgrade #182899

Open jen-huang opened 1 week ago

jen-huang commented 1 week ago

Follow up to https://github.com/elastic/kibana/issues/180791.

When users select agents to bulk upgrade, it is possible to choose a version that is lower than some of the selected agents aka downgrade. Downgrades are currently not allowed.

Currently the behavior is such that we allow these downgrade actions to be sent and let errors surface afterwards in agent activity. This may be surprising for the user. We can make this experience better by following a similar model to Restart upgrade action, where a count of eligible agents for the selected version is shown.

@juliaElastic Could you tell me more about this? Do you mean that currently Restart upgrade is only available for single agents, and we should allow Restart upgrade as a bulk action too?

Restart upgrade is also available as a bulk action. For single agent, Restart upgrade is only enabled if the agent is in updating state, while for bulk selections, the action is always enabled, and when clicking on it, the modal window will show how many agents out of the selection are in updating state, and only those will be included in the action. This was added here: https://github.com/elastic/kibana/pull/166154

image

Originally posted by @juliaElastic in https://github.com/elastic/kibana/issues/180791#issuecomment-2095258345

elasticmachine commented 1 week ago

Pinging @elastic/fleet (Team:Fleet)