Commit 7089b00
[9.2] [ResponseOps][Maintenance Window] Fix disabled MW status in the UI (elastic#242876) (elastic#243814)
# Backport
This will backport the following commits from `main` to `9.2`:
- [[ResponseOps][Maintenance Window] Fix disabled MW status in the UI
(elastic#242876)](elastic#242876)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Georgiana-Andreea
Onoleață","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-11-21T13:36:52Z","message":"[ResponseOps][Maintenance
Window] Fix disabled MW status in the UI (elastic#242876)\n\nCloses
https://github.com/elastic/kibana/issues/218109\n\n## Summary\n\nThis PR
adds support for the `disabled` state of Maintenance Windows
\n\nChanges: \n- extended `MaintenanceWindowStatus` to include
`Disabled`\n- updated all helpers and schemas to handle the disabled
state:\n- `getMaintenanceWindowDateAndStatus` now returns status
`Disabled` when\nenabled = false\n \n- UI changes:\n - MW with enabled =
false prop are now displayed as Disabled \n- updated the table action
for disabled mw: only `copy id` and `delete`\noptions are available\n
\n- Integration tests: \n - added/updated tests for creating disabled mw
\n - added tests for deleting disabled mw \n - added tests for getting
disabled mw\n\n<details>\n<summary>How to test </summary>\n\n1. create a
disabled MW via Postman using this request body:\n```\n{\n \"title\":
\"Disabled MW\",\n \"enabled\": false,\n \"schedule\": {\n \"custom\":
{\n \"duration\": \"2d\",\n \"start\": \"2025-11-18T10:10:17.579Z\"\n
}\n },\n \"scope\": {\n \"alerting\": {\n \"query\": {\n \"kql\": \"_id:
'1234'\"\n }\n }\n }\n}\n```\n2. check in the ui if the status is
`disabled` (instead of
`running`)\n</details>\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"679489bfbc279873835daf5a6c593a29a786a1a6","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","backport:version","v9.3.0","v9.2.2"],"title":"[ResponseOps][Maintenance
Window] Fix disabled MW status in the
UI","number":242876,"url":"https://github.com/elastic/kibana/pull/242876","mergeCommit":{"message":"[ResponseOps][Maintenance
Window] Fix disabled MW status in the UI (elastic#242876)\n\nCloses
https://github.com/elastic/kibana/issues/218109\n\n## Summary\n\nThis PR
adds support for the `disabled` state of Maintenance Windows
\n\nChanges: \n- extended `MaintenanceWindowStatus` to include
`Disabled`\n- updated all helpers and schemas to handle the disabled
state:\n- `getMaintenanceWindowDateAndStatus` now returns status
`Disabled` when\nenabled = false\n \n- UI changes:\n - MW with enabled =
false prop are now displayed as Disabled \n- updated the table action
for disabled mw: only `copy id` and `delete`\noptions are available\n
\n- Integration tests: \n - added/updated tests for creating disabled mw
\n - added tests for deleting disabled mw \n - added tests for getting
disabled mw\n\n<details>\n<summary>How to test </summary>\n\n1. create a
disabled MW via Postman using this request body:\n```\n{\n \"title\":
\"Disabled MW\",\n \"enabled\": false,\n \"schedule\": {\n \"custom\":
{\n \"duration\": \"2d\",\n \"start\": \"2025-11-18T10:10:17.579Z\"\n
}\n },\n \"scope\": {\n \"alerting\": {\n \"query\": {\n \"kql\": \"_id:
'1234'\"\n }\n }\n }\n}\n```\n2. check in the ui if the status is
`disabled` (instead of
`running`)\n</details>\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"679489bfbc279873835daf5a6c593a29a786a1a6"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/242876","number":242876,"mergeCommit":{"message":"[ResponseOps][Maintenance
Window] Fix disabled MW status in the UI (elastic#242876)\n\nCloses
https://github.com/elastic/kibana/issues/218109\n\n## Summary\n\nThis PR
adds support for the `disabled` state of Maintenance Windows
\n\nChanges: \n- extended `MaintenanceWindowStatus` to include
`Disabled`\n- updated all helpers and schemas to handle the disabled
state:\n- `getMaintenanceWindowDateAndStatus` now returns status
`Disabled` when\nenabled = false\n \n- UI changes:\n - MW with enabled =
false prop are now displayed as Disabled \n- updated the table action
for disabled mw: only `copy id` and `delete`\noptions are available\n
\n- Integration tests: \n - added/updated tests for creating disabled mw
\n - added tests for deleting disabled mw \n - added tests for getting
disabled mw\n\n<details>\n<summary>How to test </summary>\n\n1. create a
disabled MW via Postman using this request body:\n```\n{\n \"title\":
\"Disabled MW\",\n \"enabled\": false,\n \"schedule\": {\n \"custom\":
{\n \"duration\": \"2d\",\n \"start\": \"2025-11-18T10:10:17.579Z\"\n
}\n },\n \"scope\": {\n \"alerting\": {\n \"query\": {\n \"kql\": \"_id:
'1234'\"\n }\n }\n }\n}\n```\n2. check in the ui if the status is
`disabled` (instead of
`running`)\n</details>\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"679489bfbc279873835daf5a6c593a29a786a1a6"}},{"branch":"9.2","label":"v9.2.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Georgiana-Andreea Onoleață <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>1 parent 4cf9b0a commit 7089b00
File tree
30 files changed
+233
-28
lines changed- oas_docs
- output
- x-pack/platform
- test/alerting_api_integration/security_and_spaces/group3/tests/maintenance_window
- external
- internal
30 files changed
+233
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47449 | 47449 | | |
47450 | 47450 | | |
47451 | 47451 | | |
47452 | | - | |
| 47452 | + | |
| 47453 | + | |
47453 | 47454 | | |
47454 | 47455 | | |
47455 | 47456 | | |
| |||
47522 | 47523 | | |
47523 | 47524 | | |
47524 | 47525 | | |
47525 | | - | |
| 47526 | + | |
47526 | 47527 | | |
47527 | 47528 | | |
47528 | 47529 | | |
| |||
47533 | 47534 | | |
47534 | 47535 | | |
47535 | 47536 | | |
47536 | | - | |
| 47537 | + | |
| 47538 | + | |
47537 | 47539 | | |
47538 | 47540 | | |
47539 | 47541 | | |
| |||
47543 | 47545 | | |
47544 | 47546 | | |
47545 | 47547 | | |
47546 | | - | |
| 47548 | + | |
| 47549 | + | |
47547 | 47550 | | |
47548 | 47551 | | |
47549 | 47552 | | |
| |||
47712 | 47715 | | |
47713 | 47716 | | |
47714 | 47717 | | |
47715 | | - | |
| 47718 | + | |
| 47719 | + | |
47716 | 47720 | | |
47717 | 47721 | | |
47718 | 47722 | | |
| |||
47971 | 47975 | | |
47972 | 47976 | | |
47973 | 47977 | | |
47974 | | - | |
| 47978 | + | |
| 47979 | + | |
47975 | 47980 | | |
47976 | 47981 | | |
47977 | 47982 | | |
| |||
48305 | 48310 | | |
48306 | 48311 | | |
48307 | 48312 | | |
48308 | | - | |
| 48313 | + | |
| 48314 | + | |
48309 | 48315 | | |
48310 | 48316 | | |
48311 | 48317 | | |
| |||
48516 | 48522 | | |
48517 | 48523 | | |
48518 | 48524 | | |
48519 | | - | |
| 48525 | + | |
| 48526 | + | |
48520 | 48527 | | |
48521 | 48528 | | |
48522 | 48529 | | |
| |||
48724 | 48731 | | |
48725 | 48732 | | |
48726 | 48733 | | |
48727 | | - | |
| 48734 | + | |
| 48735 | + | |
48728 | 48736 | | |
48729 | 48737 | | |
48730 | 48738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46720 | 46720 | | |
46721 | 46721 | | |
46722 | 46722 | | |
46723 | | - | |
| 46723 | + | |
| 46724 | + | |
46724 | 46725 | | |
46725 | 46726 | | |
46726 | 46727 | | |
| |||
46793 | 46794 | | |
46794 | 46795 | | |
46795 | 46796 | | |
46796 | | - | |
| 46797 | + | |
46797 | 46798 | | |
46798 | 46799 | | |
46799 | 46800 | | |
| |||
46804 | 46805 | | |
46805 | 46806 | | |
46806 | 46807 | | |
46807 | | - | |
| 46808 | + | |
| 46809 | + | |
46808 | 46810 | | |
46809 | 46811 | | |
46810 | 46812 | | |
| |||
46814 | 46816 | | |
46815 | 46817 | | |
46816 | 46818 | | |
46817 | | - | |
| 46819 | + | |
| 46820 | + | |
46818 | 46821 | | |
46819 | 46822 | | |
46820 | 46823 | | |
| |||
46983 | 46986 | | |
46984 | 46987 | | |
46985 | 46988 | | |
46986 | | - | |
| 46989 | + | |
| 46990 | + | |
46987 | 46991 | | |
46988 | 46992 | | |
46989 | 46993 | | |
| |||
47242 | 47246 | | |
47243 | 47247 | | |
47244 | 47248 | | |
47245 | | - | |
| 47249 | + | |
| 47250 | + | |
47246 | 47251 | | |
47247 | 47252 | | |
47248 | 47253 | | |
| |||
47576 | 47581 | | |
47577 | 47582 | | |
47578 | 47583 | | |
47579 | | - | |
| 47584 | + | |
| 47585 | + | |
47580 | 47586 | | |
47581 | 47587 | | |
47582 | 47588 | | |
| |||
47787 | 47793 | | |
47788 | 47794 | | |
47789 | 47795 | | |
47790 | | - | |
| 47796 | + | |
| 47797 | + | |
47791 | 47798 | | |
47792 | 47799 | | |
47793 | 47800 | | |
| |||
47995 | 48002 | | |
47996 | 48003 | | |
47997 | 48004 | | |
47998 | | - | |
| 48005 | + | |
| 48006 | + | |
47999 | 48007 | | |
48000 | 48008 | | |
48001 | 48009 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48464 | 48464 | | |
48465 | 48465 | | |
48466 | 48466 | | |
| 48467 | + | |
48467 | 48468 | | |
48468 | 48469 | | |
48469 | 48470 | | |
| |||
48521 | 48522 | | |
48522 | 48523 | | |
48523 | 48524 | | |
48524 | | - | |
| 48525 | + | |
48525 | 48526 | | |
48526 | 48527 | | |
48527 | 48528 | | |
| |||
48532 | 48533 | | |
48533 | 48534 | | |
48534 | 48535 | | |
| 48536 | + | |
48535 | 48537 | | |
48536 | 48538 | | |
48537 | 48539 | | |
48538 | 48540 | | |
48539 | 48541 | | |
48540 | 48542 | | |
48541 | 48543 | | |
| 48544 | + | |
48542 | 48545 | | |
48543 | 48546 | | |
48544 | 48547 | | |
| |||
48663 | 48666 | | |
48664 | 48667 | | |
48665 | 48668 | | |
| 48669 | + | |
48666 | 48670 | | |
48667 | 48671 | | |
48668 | 48672 | | |
| |||
48865 | 48869 | | |
48866 | 48870 | | |
48867 | 48871 | | |
| 48872 | + | |
48868 | 48873 | | |
48869 | 48874 | | |
48870 | 48875 | | |
| |||
49114 | 49119 | | |
49115 | 49120 | | |
49116 | 49121 | | |
| 49122 | + | |
49117 | 49123 | | |
49118 | 49124 | | |
49119 | 49125 | | |
| |||
49275 | 49281 | | |
49276 | 49282 | | |
49277 | 49283 | | |
| 49284 | + | |
49278 | 49285 | | |
49279 | 49286 | | |
49280 | 49287 | | |
| |||
49434 | 49441 | | |
49435 | 49442 | | |
49436 | 49443 | | |
| 49444 | + | |
49437 | 49445 | | |
49438 | 49446 | | |
49439 | 49447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51770 | 51770 | | |
51771 | 51771 | | |
51772 | 51772 | | |
| 51773 | + | |
51773 | 51774 | | |
51774 | 51775 | | |
51775 | 51776 | | |
| |||
51827 | 51828 | | |
51828 | 51829 | | |
51829 | 51830 | | |
51830 | | - | |
| 51831 | + | |
51831 | 51832 | | |
51832 | 51833 | | |
51833 | 51834 | | |
| |||
51838 | 51839 | | |
51839 | 51840 | | |
51840 | 51841 | | |
| 51842 | + | |
51841 | 51843 | | |
51842 | 51844 | | |
51843 | 51845 | | |
51844 | 51846 | | |
51845 | 51847 | | |
51846 | 51848 | | |
51847 | 51849 | | |
| 51850 | + | |
51848 | 51851 | | |
51849 | 51852 | | |
51850 | 51853 | | |
| |||
51969 | 51972 | | |
51970 | 51973 | | |
51971 | 51974 | | |
| 51975 | + | |
51972 | 51976 | | |
51973 | 51977 | | |
51974 | 51978 | | |
| |||
52171 | 52175 | | |
52172 | 52176 | | |
52173 | 52177 | | |
| 52178 | + | |
52174 | 52179 | | |
52175 | 52180 | | |
52176 | 52181 | | |
| |||
52420 | 52425 | | |
52421 | 52426 | | |
52422 | 52427 | | |
| 52428 | + | |
52423 | 52429 | | |
52424 | 52430 | | |
52425 | 52431 | | |
| |||
52581 | 52587 | | |
52582 | 52588 | | |
52583 | 52589 | | |
| 52590 | + | |
52584 | 52591 | | |
52585 | 52592 | | |
52586 | 52593 | | |
| |||
52740 | 52747 | | |
52741 | 52748 | | |
52742 | 52749 | | |
| 52750 | + | |
52743 | 52751 | | |
52744 | 52752 | | |
52745 | 52753 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments