-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Hide ES|QL based saved searches in ML & Transforms #195084
[ML] Hide ES|QL based saved searches in ML & Transforms #195084
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -69,6 +72,9 @@ export const Page: FC<PageProps> = ({ | |||
defaultMessage: 'Saved search', | |||
} | |||
), | |||
showSavedObject: (savedObject: SavedObject) => | |||
// ES|QL Based saved searches are not supported across ML, filter them out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It covers:
- Data Visualizer => Data View
- AIOps Labs
- Anomaly Detection => Jobs
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @rbrtj |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and LGTM.
@@ -64,6 +67,9 @@ export const SearchSelection: FC<SearchSelectionProps> = ({ | |||
defaultMessage: 'Saved search', | |||
} | |||
), | |||
showSavedObject: (savedObject: SavedObject) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly the transform wizard used to partially work when selecting an ES|QL based saved search, successfully pulling out the index pattern from the search to use in the transform. However the other commands in the search (WHERE, RENAME, DROP etc) would be ignored, so I think this change is correct, filtering out ES|QL based saved searches until if / when the transform wizard supports the whole of the search.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11250933204 |
## Summary Fix for: [elastic#187962](elastic#187962) We were displaying ES|QL based searches in various areas of ML, not just in the places mentioned in the issue. Before:  Then, after selecting the ESQL based search:  After the fix:  (cherry picked from commit 1b4ebaa)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…95084) (#195541) # Backport This will backport the following commits from `main` to `8.x`: - [[ML] Hide ES|QL based saved searches in ML & Transforms (#195084)](#195084) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-09T08:14:50Z","message":"[ML] Hide ES|QL based saved searches in ML & Transforms (#195084)\n\n## Summary\r\n\r\nFix for: [#187962](https://github.com/elastic/kibana/issues/187962)\r\nWe were displaying ES|QL based searches in various areas of ML, not just\r\nin the places mentioned in the issue.\r\nBefore:\r\n\r\nThen, after selecting the ESQL based search:\r\n\r\n\r\nAfter the fix:\r\n\r\n","sha":"1b4ebaa85261074aec775d23165474863ddea45a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","v9.0.0","Team:ML","v8.16.0","backport:version"],"title":"[ML] Hide ES|QL based saved searches in ML & Transforms","number":195084,"url":"https://github.com/elastic/kibana/pull/195084","mergeCommit":{"message":"[ML] Hide ES|QL based saved searches in ML & Transforms (#195084)\n\n## Summary\r\n\r\nFix for: [#187962](https://github.com/elastic/kibana/issues/187962)\r\nWe were displaying ES|QL based searches in various areas of ML, not just\r\nin the places mentioned in the issue.\r\nBefore:\r\n\r\nThen, after selecting the ESQL based search:\r\n\r\n\r\nAfter the fix:\r\n\r\n","sha":"1b4ebaa85261074aec775d23165474863ddea45a"}},"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/195084","number":195084,"mergeCommit":{"message":"[ML] Hide ES|QL based saved searches in ML & Transforms (#195084)\n\n## Summary\r\n\r\nFix for: [#187962](https://github.com/elastic/kibana/issues/187962)\r\nWe were displaying ES|QL based searches in various areas of ML, not just\r\nin the places mentioned in the issue.\r\nBefore:\r\n\r\nThen, after selecting the ESQL based search:\r\n\r\n\r\nAfter the fix:\r\n\r\n","sha":"1b4ebaa85261074aec775d23165474863ddea45a"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <[email protected]>
Summary
Fix for: #187962



We were displaying ES|QL based searches in various areas of ML, not just in the places mentioned in the issue.
Before:
Then, after selecting the ESQL based search:
After the fix: