Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAM][Maintenance Window] Fix maintenance window category ID edit UI not initializing correctly. #170352

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

JiaweiWu
Copy link
Contributor

@JiaweiWu JiaweiWu commented Nov 1, 2023

Summary

Fixed a bug with the MW category ID selection feature where if a MW had it's category IDs changed, when attempting to edit this MW, the category IDs would fail to initialize.

Steps to test:

  1. Create a maintenance window with only 2 categories selected (o11y, management)
  2. Edit the maintenance window
  3. Assert that the categories initialize correctly (o11y and management checkboxes are checked)

Checklist

@JiaweiWu JiaweiWu added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Alerting/RulesManagement Issues related to the Rules Management UX v8.12.0 labels Nov 1, 2023
@JiaweiWu JiaweiWu requested a review from a team as a code owner November 1, 2023 20:04
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
alerting 70.4KB 70.4KB +22.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 2, 2023
…not initializing correctly. (elastic#170352)

## Summary
Fixed a bug with the MW category ID selection feature where if a MW had
it's category IDs changed, when attempting to edit this MW, the category
IDs would fail to initialize.

Steps to test:
1. Create a maintenance window with only 2 categories selected (o11y,
management)
2. Edit the maintenance window
3. Assert that the categories initialize correctly (o11y and management
checkboxes are checked)

### Checklist
- [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

(cherry picked from commit ea1451e)
kibanamachine added a commit that referenced this pull request Nov 2, 2023
…dit UI not initializing correctly. (#170352) (#170377)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[RAM][Maintenance Window] Fix maintenance window category ID edit UI
not initializing correctly.
(#170352)](#170352)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jiawei
Wu","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-02T03:55:02Z","message":"[RAM][Maintenance
Window] Fix maintenance window category ID edit UI not initializing
correctly. (#170352)\n\n## Summary\r\nFixed a bug with the MW category
ID selection feature where if a MW had\r\nit's category IDs changed,
when attempting to edit this MW, the category\r\nIDs would fail to
initialize.\r\n\r\nSteps to test:\r\n1. Create a maintenance window with
only 2 categories selected (o11y,\r\nmanagement)\r\n2. Edit the
maintenance window\r\n3. Assert that the categories initialize correctly
(o11y and management\r\ncheckboxes are checked)\r\n\r\n###
Checklist\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ea1451e14c5543ed40a8448a80556c91173815e5","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","Feature:Alerting/RulesManagement","v8.11.0","v8.12.0"],"number":170352,"url":"https://github.com/elastic/kibana/pull/170352","mergeCommit":{"message":"[RAM][Maintenance
Window] Fix maintenance window category ID edit UI not initializing
correctly. (#170352)\n\n## Summary\r\nFixed a bug with the MW category
ID selection feature where if a MW had\r\nit's category IDs changed,
when attempting to edit this MW, the category\r\nIDs would fail to
initialize.\r\n\r\nSteps to test:\r\n1. Create a maintenance window with
only 2 categories selected (o11y,\r\nmanagement)\r\n2. Edit the
maintenance window\r\n3. Assert that the categories initialize correctly
(o11y and management\r\ncheckboxes are checked)\r\n\r\n###
Checklist\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ea1451e14c5543ed40a8448a80556c91173815e5"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170352","number":170352,"mergeCommit":{"message":"[RAM][Maintenance
Window] Fix maintenance window category ID edit UI not initializing
correctly. (#170352)\n\n## Summary\r\nFixed a bug with the MW category
ID selection feature where if a MW had\r\nit's category IDs changed,
when attempting to edit this MW, the category\r\nIDs would fail to
initialize.\r\n\r\nSteps to test:\r\n1. Create a maintenance window with
only 2 categories selected (o11y,\r\nmanagement)\r\n2. Edit the
maintenance window\r\n3. Assert that the categories initialize correctly
(o11y and management\r\ncheckboxes are checked)\r\n\r\n###
Checklist\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ea1451e14c5543ed40a8448a80556c91173815e5"}}]}]
BACKPORT-->

Co-authored-by: Jiawei Wu <[email protected]>
delanni pushed a commit to delanni/kibana that referenced this pull request Nov 6, 2023
…not initializing correctly. (elastic#170352)

## Summary
Fixed a bug with the MW category ID selection feature where if a MW had
it's category IDs changed, when attempting to edit this MW, the category
IDs would fail to initialize.

Steps to test:
1. Create a maintenance window with only 2 categories selected (o11y,
management)
2. Edit the maintenance window
3. Assert that the categories initialize correctly (o11y and management
checkboxes are checked)

### Checklist
- [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Alerting/RulesManagement Issues related to the Rules Management UX release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.11.0 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants