[ResponseOps][Rules] Allow users to delete snooze schedule from a rule#213247
[ResponseOps][Rules] Allow users to delete snooze schedule from a rule#213247js-jankisalvi merged 19 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/response-ops (Team:ResponseOps) |
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --include-path /api/dashboards --update'
Zacqary
left a comment
There was a problem hiding this comment.
LGTM, assuming CI goes green
Thanks for the review! |
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --update'
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --update'
lcawl
left a comment
There was a problem hiding this comment.
I added path parameter descriptions and did a minor update to the operation summary then refreshed the output. Docs LGTM!
...orm/plugins/shared/alerting/server/routes/rule/apis/unsnooze/external/unsnooze_rule_route.ts
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
|
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8049[✅] x-pack/test/alerting_api_integration/spaces_only/tests/alerting/group4/config.ts: 25/25 tests passed. |
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13902495712 |
elastic#213247) ## Summary Resolves elastic#198783 This PR allows to delete existing snooze schedule from a rule using schedule id. ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [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 ### How to test - Create a rule in kibana - Snooze that rule via new public API - delete that snooze schedule via public api Method: `DELETE` Path: `https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>` ### Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049 ### Release note Allow users to delete a snooze schedule from a rule using schedule id --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co> (cherry picked from commit 6088eb2)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… a rule (#213247) (#214796) # Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps][Rules] Allow users to delete snooze schedule from a rule (#213247)](#213247) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Janki Salvi","email":"117571355+js-jankisalvi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-17T14:50:47Z","message":"[ResponseOps][Rules] Allow users to delete snooze schedule from a rule (#213247)\n\n## Summary\n\nResolves https://github.com/elastic/kibana/issues/198783\n\nThis PR allows to delete existing snooze schedule from a rule using\nschedule id.\n\n\n### Checklist\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### How to test\n- Create a rule in kibana\n- Snooze that rule via new public API\n- delete that snooze schedule via public api\n\nMethod: `DELETE`\nPath:\n`https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>`\n\n### Flaky test runner:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049\n\n### Release note\nAllow users to delete a snooze schedule from a rule using schedule id\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: lcawl <lcawley@elastic.co>","sha":"6088eb221ec13d597baaaca479e3d40eb7e5e8cb","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:ResponseOps","Feature:Alerting/RulesManagement","backport:version","v9.1.0","v8.19.0"],"title":"[ResponseOps][Rules] Allow users to delete snooze schedule from a rule","number":213247,"url":"https://github.com/elastic/kibana/pull/213247","mergeCommit":{"message":"[ResponseOps][Rules] Allow users to delete snooze schedule from a rule (#213247)\n\n## Summary\n\nResolves https://github.com/elastic/kibana/issues/198783\n\nThis PR allows to delete existing snooze schedule from a rule using\nschedule id.\n\n\n### Checklist\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### How to test\n- Create a rule in kibana\n- Snooze that rule via new public API\n- delete that snooze schedule via public api\n\nMethod: `DELETE`\nPath:\n`https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>`\n\n### Flaky test runner:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049\n\n### Release note\nAllow users to delete a snooze schedule from a rule using schedule id\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: lcawl <lcawley@elastic.co>","sha":"6088eb221ec13d597baaaca479e3d40eb7e5e8cb"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213247","number":213247,"mergeCommit":{"message":"[ResponseOps][Rules] Allow users to delete snooze schedule from a rule (#213247)\n\n## Summary\n\nResolves https://github.com/elastic/kibana/issues/198783\n\nThis PR allows to delete existing snooze schedule from a rule using\nschedule id.\n\n\n### Checklist\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n### How to test\n- Create a rule in kibana\n- Snooze that rule via new public API\n- delete that snooze schedule via public api\n\nMethod: `DELETE`\nPath:\n`https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>`\n\n### Flaky test runner:\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049\n\n### Release note\nAllow users to delete a snooze schedule from a rule using schedule id\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: lcawl <lcawley@elastic.co>","sha":"6088eb221ec13d597baaaca479e3d40eb7e5e8cb"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Janki Salvi <117571355+js-jankisalvi@users.noreply.github.com>
elastic#213247) ## Summary Resolves elastic#198783 This PR allows to delete existing snooze schedule from a rule using schedule id. ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [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 ### How to test - Create a rule in kibana - Snooze that rule via new public API - delete that snooze schedule via public api Method: `DELETE` Path: `https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>` ### Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049 ### Release note Allow users to delete a snooze schedule from a rule using schedule id --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co>
elastic#213247) ## Summary Resolves elastic#198783 This PR allows to delete existing snooze schedule from a rule using schedule id. ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [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 ### How to test - Create a rule in kibana - Snooze that rule via new public API - delete that snooze schedule via public api Method: `DELETE` Path: `https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>` ### Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049 ### Release note Allow users to delete a snooze schedule from a rule using schedule id --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co>
Summary
Resolves #198783
This PR allows to delete existing snooze schedule from a rule using schedule id.
Checklist
How to test
Method:
DELETEPath:
https://localhost:5601/api/alerting/rule/<ruleId>/snooze_schedule/<scheduleId>Flaky test runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8049
Release note
Allow users to delete a snooze schedule from a rule using schedule id