Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule …
…execution regarding wildcards (#201553) (#201733) # Backport This will backport the following commits from `main` to `8.x`: - [[Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule execution regarding wildcards (#201553)](#201553) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Faisal Kanout","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-26T09:33:55Z","message":"[Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule execution regarding wildcards (#201553)\n\n## Summary\r\nIt fixes #186624 by making the preview chat represent the wildcard\r\ncorrectly. The missing use case was when passing the query without \" \"\r\n\r\n\r\n|Tested cases|Note|\r\n|---|---|\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 12 04 14\"\r\nsrc=\"https://github.com/user-attachments/assets/8140d175-9ff3-4d1a-ac72-baf1e7878326\">|<img\r\nwidth=\"594\" alt=\"Screenshot 2024-11-25 at 12 04 27\"\r\nsrc=\"https://github.com/user-attachments/assets/cf0eeb97-0fe7-4509-b4db-c8e4b54e0def\">We\r\ncan't show \"NoData\" in this case. I tested the same formula in Lens and\r\ngot the same results. It's not ideal, but at least we don't have any\r\ndata/bars that could mislead the user|\r\n\r\n\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 53\"\r\nsrc=\"https://github.com/user-attachments/assets/cc128bd7-f4aa-403a-8c0a-398b36694064\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 41\"\r\nsrc=\"https://github.com/user-attachments/assets/7f4ae425-6c3b-4067-ab45-0e8282ddd901\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 28\"\r\nsrc=\"https://github.com/user-attachments/assets/e2e6dfde-834a-4921-8471-a7270bbd2f9c\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 08\"\r\nsrc=\"https://github.com/user-attachments/assets/6ffc641d-b043-4740-897f-5d4e94adda41\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 58 58\"\r\nsrc=\"https://github.com/user-attachments/assets/5122e9df-b392-4785-8a2b-5219c818dfed\">||","sha":"f0c8fde12469a9d827a4f4cb8498f3210b400ce2","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Alerting","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.18.0"],"title":"[Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule execution regarding wildcards","number":201553,"url":"https://github.com/elastic/kibana/pull/201553","mergeCommit":{"message":"[Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule execution regarding wildcards (#201553)\n\n## Summary\r\nIt fixes #186624 by making the preview chat represent the wildcard\r\ncorrectly. The missing use case was when passing the query without \" \"\r\n\r\n\r\n|Tested cases|Note|\r\n|---|---|\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 12 04 14\"\r\nsrc=\"https://github.com/user-attachments/assets/8140d175-9ff3-4d1a-ac72-baf1e7878326\">|<img\r\nwidth=\"594\" alt=\"Screenshot 2024-11-25 at 12 04 27\"\r\nsrc=\"https://github.com/user-attachments/assets/cf0eeb97-0fe7-4509-b4db-c8e4b54e0def\">We\r\ncan't show \"NoData\" in this case. I tested the same formula in Lens and\r\ngot the same results. It's not ideal, but at least we don't have any\r\ndata/bars that could mislead the user|\r\n\r\n\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 53\"\r\nsrc=\"https://github.com/user-attachments/assets/cc128bd7-f4aa-403a-8c0a-398b36694064\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 41\"\r\nsrc=\"https://github.com/user-attachments/assets/7f4ae425-6c3b-4067-ab45-0e8282ddd901\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 28\"\r\nsrc=\"https://github.com/user-attachments/assets/e2e6dfde-834a-4921-8471-a7270bbd2f9c\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 08\"\r\nsrc=\"https://github.com/user-attachments/assets/6ffc641d-b043-4740-897f-5d4e94adda41\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 58 58\"\r\nsrc=\"https://github.com/user-attachments/assets/5122e9df-b392-4785-8a2b-5219c818dfed\">||","sha":"f0c8fde12469a9d827a4f4cb8498f3210b400ce2"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201553","number":201553,"mergeCommit":{"message":"[Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule execution regarding wildcards (#201553)\n\n## Summary\r\nIt fixes #186624 by making the preview chat represent the wildcard\r\ncorrectly. The missing use case was when passing the query without \" \"\r\n\r\n\r\n|Tested cases|Note|\r\n|---|---|\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 12 04 14\"\r\nsrc=\"https://github.com/user-attachments/assets/8140d175-9ff3-4d1a-ac72-baf1e7878326\">|<img\r\nwidth=\"594\" alt=\"Screenshot 2024-11-25 at 12 04 27\"\r\nsrc=\"https://github.com/user-attachments/assets/cf0eeb97-0fe7-4509-b4db-c8e4b54e0def\">We\r\ncan't show \"NoData\" in this case. I tested the same formula in Lens and\r\ngot the same results. It's not ideal, but at least we don't have any\r\ndata/bars that could mislead the user|\r\n\r\n\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 53\"\r\nsrc=\"https://github.com/user-attachments/assets/cc128bd7-f4aa-403a-8c0a-398b36694064\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 41\"\r\nsrc=\"https://github.com/user-attachments/assets/7f4ae425-6c3b-4067-ab45-0e8282ddd901\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 28\"\r\nsrc=\"https://github.com/user-attachments/assets/e2e6dfde-834a-4921-8471-a7270bbd2f9c\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 59 08\"\r\nsrc=\"https://github.com/user-attachments/assets/6ffc641d-b043-4740-897f-5d4e94adda41\">||\r\n|<img width=\"596\" alt=\"Screenshot 2024-11-25 at 11 58 58\"\r\nsrc=\"https://github.com/user-attachments/assets/5122e9df-b392-4785-8a2b-5219c818dfed\">||","sha":"f0c8fde12469a9d827a4f4cb8498f3210b400ce2"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Faisal Kanout <[email protected]>
- Loading branch information