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

[Obx-ux-mgmt][Alerting]Mismatch between preview chart and rule execution regarding wildcards #201553

Merged

Conversation

fkanout
Copy link
Contributor

@fkanout fkanout commented Nov 25, 2024

Summary

It fixes #186624 by making the preview chat represent the wildcard correctly. The missing use case was when passing the query without " "

Tested cases Note
Screenshot 2024-11-25 at 12 04 14 Screenshot 2024-11-25 at 12 04 27We can't show "NoData" in this case. I tested the same formula in Lens and got the same results. It's not ideal, but at least we don't have any data/bars that could mislead the user

|Screenshot 2024-11-25 at 11 59 53||
|Screenshot 2024-11-25 at 11 59 41||
|Screenshot 2024-11-25 at 11 59 28||
|Screenshot 2024-11-25 at 11 59 08||
|Screenshot 2024-11-25 at 11 58 58||

@fkanout fkanout added bug Fixes for quality problems that affect the customer experience release_note:fix Feature:Alerting Team:obs-ux-management Observability Management User Experience Team v8.18.0 labels Nov 25, 2024
@fkanout fkanout requested a review from a team as a code owner November 25, 2024 11:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Nov 25, 2024
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@fkanout fkanout added the backport:skip This commit does not require backporting label Nov 25, 2024
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 25, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: 7fe95bc
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-201553-7fe95bc60056

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
observability 472.5KB 472.5KB -17.0B

History

Copy link
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Work as expected locally
image

@fkanout fkanout added backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) and removed backport:skip This commit does not require backporting labels Nov 26, 2024
@fkanout fkanout merged commit f0c8fde into elastic:main Nov 26, 2024
27 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12027693010

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 26, 2024
…ion regarding wildcards (elastic#201553)

## Summary
It fixes elastic#186624 by making the preview chat represent the wildcard
correctly. The missing use case was when passing the query without " "

|Tested cases|Note|
|---|---|
|<img width="596" alt="Screenshot 2024-11-25 at 12 04 14"
src="https://github.com/user-attachments/assets/8140d175-9ff3-4d1a-ac72-baf1e7878326">|<img
width="594" alt="Screenshot 2024-11-25 at 12 04 27"
src="https://github.com/user-attachments/assets/cf0eeb97-0fe7-4509-b4db-c8e4b54e0def">We
can't show "NoData" in this case. I tested the same formula in Lens and
got the same results. It's not ideal, but at least we don't have any
data/bars that could mislead the user|

|<img width="596" alt="Screenshot 2024-11-25 at 11 59 53"
src="https://github.com/user-attachments/assets/cc128bd7-f4aa-403a-8c0a-398b36694064">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 41"
src="https://github.com/user-attachments/assets/7f4ae425-6c3b-4067-ab45-0e8282ddd901">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 28"
src="https://github.com/user-attachments/assets/e2e6dfde-834a-4921-8471-a7270bbd2f9c">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 08"
src="https://github.com/user-attachments/assets/6ffc641d-b043-4740-897f-5d4e94adda41">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 58 58"
src="https://github.com/user-attachments/assets/5122e9df-b392-4785-8a2b-5219c818dfed">||

(cherry picked from commit f0c8fde)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 26, 2024
…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]>
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Nov 26, 2024
…ion regarding wildcards (elastic#201553)

## Summary
It fixes elastic#186624 by making the preview chat represent the wildcard
correctly. The missing use case was when passing the query without " "


|Tested cases|Note|
|---|---|
|<img width="596" alt="Screenshot 2024-11-25 at 12 04 14"
src="https://github.com/user-attachments/assets/8140d175-9ff3-4d1a-ac72-baf1e7878326">|<img
width="594" alt="Screenshot 2024-11-25 at 12 04 27"
src="https://github.com/user-attachments/assets/cf0eeb97-0fe7-4509-b4db-c8e4b54e0def">We
can't show "NoData" in this case. I tested the same formula in Lens and
got the same results. It's not ideal, but at least we don't have any
data/bars that could mislead the user|


|<img width="596" alt="Screenshot 2024-11-25 at 11 59 53"
src="https://github.com/user-attachments/assets/cc128bd7-f4aa-403a-8c0a-398b36694064">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 41"
src="https://github.com/user-attachments/assets/7f4ae425-6c3b-4067-ab45-0e8282ddd901">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 28"
src="https://github.com/user-attachments/assets/e2e6dfde-834a-4921-8471-a7270bbd2f9c">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 08"
src="https://github.com/user-attachments/assets/6ffc641d-b043-4740-897f-5d4e94adda41">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 58 58"
src="https://github.com/user-attachments/assets/5122e9df-b392-4785-8a2b-5219c818dfed">||
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…ion regarding wildcards (elastic#201553)

## Summary
It fixes elastic#186624 by making the preview chat represent the wildcard
correctly. The missing use case was when passing the query without " "


|Tested cases|Note|
|---|---|
|<img width="596" alt="Screenshot 2024-11-25 at 12 04 14"
src="https://github.com/user-attachments/assets/8140d175-9ff3-4d1a-ac72-baf1e7878326">|<img
width="594" alt="Screenshot 2024-11-25 at 12 04 27"
src="https://github.com/user-attachments/assets/cf0eeb97-0fe7-4509-b4db-c8e4b54e0def">We
can't show "NoData" in this case. I tested the same formula in Lens and
got the same results. It's not ideal, but at least we don't have any
data/bars that could mislead the user|


|<img width="596" alt="Screenshot 2024-11-25 at 11 59 53"
src="https://github.com/user-attachments/assets/cc128bd7-f4aa-403a-8c0a-398b36694064">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 41"
src="https://github.com/user-attachments/assets/7f4ae425-6c3b-4067-ab45-0e8282ddd901">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 28"
src="https://github.com/user-attachments/assets/e2e6dfde-834a-4921-8471-a7270bbd2f9c">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 59 08"
src="https://github.com/user-attachments/assets/6ffc641d-b043-4740-897f-5d4e94adda41">||
|<img width="596" alt="Screenshot 2024-11-25 at 11 58 58"
src="https://github.com/user-attachments/assets/5122e9df-b392-4785-8a2b-5219c818dfed">||
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) bug Fixes for quality problems that affect the customer experience ci:project-deploy-observability Create an Observability project Feature:Alerting release_note:fix Team:obs-ux-management Observability Management User Experience Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Custom threshold] Mismatch between preview chart and rule execution regarding wildcards
4 participants