-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Lens] dont use legacy metric in the suggestions #197101
Conversation
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
1e51e33
to
820da9b
Compare
820da9b
to
34064c4
Compare
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
Starting backport for target branches: 8.x |
## Summary Fixes elastic#197078 (cherry picked from commit 6f44bf5)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…7337) # Backport This will backport the following commits from `main` to `8.x`: - [[Lens] dont use legacy metric in the suggestions (#197101)](#197101) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marta Bondyra","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-22T20:04:07Z","message":"[Lens] dont use legacy metric in the suggestions (#197101)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/197078","sha":"6f44bf5b65843ce656c6b66e37403be91e19b96b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","v9.0.0","backport:prev-minor"],"title":"[Lens] dont use legacy metric in the suggestions","number":197101,"url":"https://github.com/elastic/kibana/pull/197101","mergeCommit":{"message":"[Lens] dont use legacy metric in the suggestions (#197101)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/197078","sha":"6f44bf5b65843ce656c6b66e37403be91e19b96b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197101","number":197101,"mergeCommit":{"message":"[Lens] dont use legacy metric in the suggestions (#197101)\n\n## Summary\r\n\r\nFixes https://github.com/elastic/kibana/issues/197078","sha":"6f44bf5b65843ce656c6b66e37403be91e19b96b"}}]}] BACKPORT--> Co-authored-by: Marta Bondyra <[email protected]>
Fixes #197342 In this PR (#197101) I removed the legacy metric from being suggested in the suggestion panel, and replaced it with the new metric visualization. To maintain the previous behavior in Lens (suggesting a new metric in the same place as legacy metric), we made the score higher for the new metric. This positioned it higher also in the Discover ESQL suggestions. This led to an issue where one expected suggestion didn’t appear because we only display the top 6 suggestions by score and it got pushed out by metric. Additionally, I made a change here to only display the metric without bucketed columns in the suggestion panel. I don't see there's a lot of value in suggesting bucketed metric unless it's something user chooses intentionally. Should be merged to 8.x after this: #197337
Fixes elastic#197342 In this PR (elastic#197101) I removed the legacy metric from being suggested in the suggestion panel, and replaced it with the new metric visualization. To maintain the previous behavior in Lens (suggesting a new metric in the same place as legacy metric), we made the score higher for the new metric. This positioned it higher also in the Discover ESQL suggestions. This led to an issue where one expected suggestion didn’t appear because we only display the top 6 suggestions by score and it got pushed out by metric. Additionally, I made a change here to only display the metric without bucketed columns in the suggestion panel. I don't see there's a lot of value in suggesting bucketed metric unless it's something user chooses intentionally. Should be merged to 8.x after this: elastic#197337 (cherry picked from commit b3b85da)
# Backport This will backport the following commits from `main` to `8.x`: - [[Discover] Fix suggestions for ES|QL charts (#197583)](#197583) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marta Bondyra","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-25T15:17:02Z","message":"[Discover] Fix suggestions for ES|QL charts (#197583)\n\nFixes https://github.com/elastic/kibana/issues/197342\r\n\r\nIn this PR (#197101) I removed the\r\nlegacy metric from being suggested in the suggestion panel, and replaced\r\nit with the new metric visualization. To maintain the previous behavior\r\nin Lens (suggesting a new metric in the same place as legacy metric), we\r\nmade the score higher for the new metric. This positioned it higher also\r\nin the Discover ESQL suggestions. This led to an issue where one\r\nexpected suggestion didn’t appear because we only display the top 6\r\nsuggestions by score and it got pushed out by metric.\r\n\r\nAdditionally, I made a change here to only display the metric without\r\nbucketed columns in the suggestion panel. I don't see there's a lot of\r\nvalue in suggesting bucketed metric unless it's something user chooses\r\nintentionally.\r\n\r\nShould be merged to 8.x after this:\r\nhttps://github.com//pull/197337","sha":"b3b85da80d0c9a8431f6a2f2e3c1bdf1448eb1a6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","Team:Visualizations","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Discover] Fix suggestions for ES|QL charts","number":197583,"url":"https://github.com/elastic/kibana/pull/197583","mergeCommit":{"message":"[Discover] Fix suggestions for ES|QL charts (#197583)\n\nFixes https://github.com/elastic/kibana/issues/197342\r\n\r\nIn this PR (#197101) I removed the\r\nlegacy metric from being suggested in the suggestion panel, and replaced\r\nit with the new metric visualization. To maintain the previous behavior\r\nin Lens (suggesting a new metric in the same place as legacy metric), we\r\nmade the score higher for the new metric. This positioned it higher also\r\nin the Discover ESQL suggestions. This led to an issue where one\r\nexpected suggestion didn’t appear because we only display the top 6\r\nsuggestions by score and it got pushed out by metric.\r\n\r\nAdditionally, I made a change here to only display the metric without\r\nbucketed columns in the suggestion panel. I don't see there's a lot of\r\nvalue in suggesting bucketed metric unless it's something user chooses\r\nintentionally.\r\n\r\nShould be merged to 8.x after this:\r\nhttps://github.com//pull/197337","sha":"b3b85da80d0c9a8431f6a2f2e3c1bdf1448eb1a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197583","number":197583,"mergeCommit":{"message":"[Discover] Fix suggestions for ES|QL charts (#197583)\n\nFixes https://github.com/elastic/kibana/issues/197342\r\n\r\nIn this PR (#197101) I removed the\r\nlegacy metric from being suggested in the suggestion panel, and replaced\r\nit with the new metric visualization. To maintain the previous behavior\r\nin Lens (suggesting a new metric in the same place as legacy metric), we\r\nmade the score higher for the new metric. This positioned it higher also\r\nin the Discover ESQL suggestions. This led to an issue where one\r\nexpected suggestion didn’t appear because we only display the top 6\r\nsuggestions by score and it got pushed out by metric.\r\n\r\nAdditionally, I made a change here to only display the metric without\r\nbucketed columns in the suggestion panel. I don't see there's a lot of\r\nvalue in suggesting bucketed metric unless it's something user chooses\r\nintentionally.\r\n\r\nShould be merged to 8.x after this:\r\nhttps://github.com//pull/197337","sha":"b3b85da80d0c9a8431f6a2f2e3c1bdf1448eb1a6"}}]}] BACKPORT--> Co-authored-by: Marta Bondyra <[email protected]>
Summary
Fixes #197078