Skip to content

[Rules] Fix error message for missing data view in custom threshold #227727

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

Merged
merged 9 commits into from
Jul 16, 2025

Conversation

baileycash-elastic
Copy link
Contributor

@baileycash-elastic baileycash-elastic commented Jul 11, 2025

Summary

Resolves #220855

Screen.Recording.2025-07-13.at.11.36.56.PM.mov

@baileycash-elastic baileycash-elastic requested a review from a team as a code owner July 11, 2025 22:05
@baileycash-elastic baileycash-elastic added the bug Fixes for quality problems that affect the customer experience label Jul 11, 2025
@baileycash-elastic baileycash-elastic requested review from a team as code owners July 11, 2025 22:05
@baileycash-elastic baileycash-elastic added release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) Team:obs-ux-management Observability Management User Experience Team backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 v8.18.4 v9.0.4 labels Jul 11, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@elasticmachine
Copy link
Contributor

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

@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Jul 11, 2025
@baileycash-elastic baileycash-elastic marked this pull request as draft July 11, 2025 22:10
@baileycash-elastic baileycash-elastic marked this pull request as ready for review July 14, 2025 03:34
@baileycash-elastic baileycash-elastic changed the title Fix error message for missing data view in rules [Rules] Fix error message for missing data view in custom threshold Jul 14, 2025
@baileycash-elastic baileycash-elastic requested review from davismcphee and removed request for a team July 14, 2025 20:01
Copy link
Contributor

Choose a reason for hiding this comment

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

@baileycash-elastic Will this fix also resolve this issue: #135641?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The implementations of the rule form & data view component are similar, but not exactly the same. They both initiate a search source and default data view, so my solution could be worked in.

@elastic elastic deleted a comment from elasticmachine Jul 15, 2025
@elasticmachine
Copy link
Contributor

💚 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
observability 1.3MB 1.3MB +603.0B

@kdelemme kdelemme self-requested a review July 16, 2025 18:24
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, tested locally and work as expected

Before deletion after deletion
Image Image

@baileycash-elastic baileycash-elastic merged commit 57f976d into elastic:main Jul 16, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0, 9.1

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

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.19
9.0
9.1

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 Jul 16, 2025
…hold (#227727) (#228320)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Rules] Fix error message for missing data view in custom threshold
(#227727)](#227727)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Bailey
Cash","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-16T20:42:35Z","message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:SharedUX","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0","v8.18.4","v9.0.4"],"title":"[Rules]
Fix error message for missing data view in custom
threshold","number":227727,"url":"https://github.com/elastic/kibana/pull/227727","mergeCommit":{"message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227727","number":227727,"mergeCommit":{"message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Bailey Cash <[email protected]>
kibanamachine added a commit that referenced this pull request Jul 16, 2025
…hold (#227727) (#228322)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Rules] Fix error message for missing data view in custom threshold
(#227727)](#227727)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Bailey
Cash","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-16T20:42:35Z","message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:SharedUX","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0","v8.18.4","v9.0.4"],"title":"[Rules]
Fix error message for missing data view in custom
threshold","number":227727,"url":"https://github.com/elastic/kibana/pull/227727","mergeCommit":{"message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227727","number":227727,"mergeCommit":{"message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Bailey Cash <[email protected]>
kibanamachine added a commit that referenced this pull request Jul 16, 2025
…shold (#227727) (#228318)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Rules] Fix error message for missing data view in custom threshold
(#227727)](#227727)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Bailey
Cash","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-16T20:42:35Z","message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:SharedUX","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0","v8.18.4","v9.0.4"],"title":"[Rules]
Fix error message for missing data view in custom
threshold","number":227727,"url":"https://github.com/elastic/kibana/pull/227727","mergeCommit":{"message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227727","number":227727,"mergeCommit":{"message":"[Rules]
Fix error message for missing data view in custom threshold
(#227727)\n\n## Summary\n\nResolves #220855
\n\n\nhttps://github.com/user-attachments/assets/9e6fb2a5-7319-41c5-9609-873ce6c96b52","sha":"57f976d62f7b7ce798626d511745688001575b05"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Bailey Cash <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author:obs-ux-management PRs authored by the obs ux management team backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.18.4 v8.19.0 v9.0.4 v9.1.0 v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Custom threshold] Improve UI for the scenario that data view is deleted
5 participants