kibana/x-pack/examples/triggers_actions_ui_example
Julian Gernun 043ebe521e
[Response Ops][Alerting] Alert Delete (#216613)
## Summary

Implements alert deletion feature
(https://github.com/elastic/kibana/issues/208621). Can be found in stack
management under `Rules` > `Settings` > `Clean up`

<img width="1063" alt="Screenshot 2025-05-27 at 12 14 26"
src="https://github.com/user-attachments/assets/21ad1551-9464-42f8-831a-c9bf9d9e08a3"
/>

### This PR is comprised of multiple sub-PRs:

**UI and Kibana Endpoints**
- Alert Delete UI package (rule settings + modal) -
https://github.com/elastic/kibana/pull/216334
- Preview (number of alerts that would be deleted with current settings)
- https://github.com/elastic/kibana/pull/216504
- Schedule deletion task - https://github.com/elastic/kibana/pull/217226
- Last run task - https://github.com/elastic/kibana/pull/219544

**Alert Deletion Task**
- Task definition - https://github.com/elastic/kibana/pull/216169
- Don't delete alerts linked to a case -
https://github.com/elastic/kibana/pull/216712

**Final adjustments**
- Max threshold up to 3 years, category_ids required, feature flag on
and no alert deletion in o11y -
https://github.com/elastic/kibana/pull/219694
- Commit to fix broken task scheduling in the UI -
5b8cb87ab4
- Functional test for happy path -
https://github.com/elastic/kibana/pull/221839
- Bugfixes + cases exception tooltip + singular thresholds
-6dcd8a9f52

## Release note
Added alert cleanup functionality to delete active or inactive
(recovered, closed, or untracked) alerts with no status update for a
period of time of at least one day

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Antonio <antoniodcoelho@gmail.com>
Co-authored-by: Ying <ying.mao@elastic.co>
Co-authored-by: Christos Nasikas <xristosnasikas@gmail.com>
Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-06-09 13:49:54 +02:00
..
public [Response Ops][Alerting] Alert Delete (#216613) 2025-06-09 13:49:54 +02:00
server [Response Ops][Task Manager] Pass fakeRequest for tasks with associated API key instead of actual key (#217327) 2025-04-14 16:10:17 +02:00
kibana.jsonc [Response Ops][Task Manager] Run tasks as the current user (#205577) 2025-04-02 19:09:07 -06:00
tsconfig.json [ResponseOps][Alerts] Embeddable alerts table creation flow (#216076) 2025-05-14 11:46:27 -04:00