-
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
[ES|QL] [Discover] Keeps the preferred chart type when possible #195588
Conversation
@@ -43,3 +43,16 @@ export interface Suggestion<T = unknown, V = unknown> { | |||
changeType: TableChangeType; | |||
keptLayerIds: string[]; | |||
} | |||
|
|||
export enum ChartType { |
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.
ℹ️ Moving this here for reusability
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#7219[✅] test/functional/apps/discover/esql/config.ts: 25/25 tests passed. |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
Sorry for the ping, do not review yet, I found a small bug |
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
History
|
Closing in favor of #197453 |
Summary
Part of #184631
It keeps the chart type when the user is doing actions compatible with the current query such as:
The logic depends on the suggestions. If the suggestions return the preferred chart type, then we are going to use this. So it really depends on the api and the type of columns.
Important note
This doesnt keep all the vis changes, only the chart type
Checklist