elastic / kibana

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

[Snapshot and Restore] Incorrect Last Successful Managed Snapshot when the list of snapshots is filtered #158548

Open ElenaStoeva opened 1 year ago

ElenaStoeva commented 1 year ago

Currently, in the list of Snapshots, the last successful managed snapshot is non-selectable and it cannot be deleted. However, when the list of snapshots is filtered, it seems the logic for selecting the last successful snapshot is incorrect as it selects the most recent one amongst the filtered snapshots, while it should select the most recent one amongst all snapshots. Because of this, when we don't filter the table, we have one snapshot that is non-deletable, and when we filter the table, we can get a completely different snapshot that is non-deletable, which is incorrect - it should be the same in both cases.

Reproduced the behaviour in a 8.8 deployment:

https://github.com/elastic/kibana/assets/59341489/26a15437-ed3f-4805-b41b-b7bc1c21f9e6

elasticmachine commented 1 year ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

alisonelizabeth commented 1 year ago

@ElenaStoeva is https://github.com/elastic/kibana/issues/153107 a duplicate of this?

ElenaStoeva commented 1 year ago

@ElenaStoeva is #153107 a duplicate of this?

Yes, it seems that it describes a behaviour that is caused by the same bug. I didn't notice it when I created this issue, thanks for pointing it out!

ElenaStoeva commented 12 months ago

This issue is currently blocked as it depends on an enhancement from the Es side: https://github.com/elastic/elasticsearch/issues/97446

elasticmachine commented 1 month ago

Pinging @elastic/kibana-management (Team:Kibana Management)