-
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] Render a Discover-like table in the assistant instead of a Lens chart #184106
Conversation
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.
Hi @stratoula,
I have not checked the fully yet but leaving some initial questions.
/ci |
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.
Looks great, thanks!
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.
Awesome simplification!
<ESQLDataGrid | ||
rows={values} | ||
columns={formattedColumns} | ||
dataView={adHocDataView} | ||
query={{ esql: query }} | ||
flyoutType="overlay" | ||
isTableView | ||
/> |
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.
🤩
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.
👍 so simple and nice!
...servability_solution/observability_ai_assistant_app/public/functions/visualize_esql.test.tsx
Outdated
Show resolved
Hide resolved
...bility_solution/observability_ai_assistant_app/server/functions/query/validate_esql_query.ts
Show resolved
Hide resolved
/ci |
...ns/observability_solution/observability_ai_assistant_app/public/functions/visualize_esql.tsx
Outdated
Show resolved
Hide resolved
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.
🤲🏻
@elasticmachine merge upstream |
/ci |
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Canvas Sharable Runtime
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
This PR does 2 things:
Creates a new plugin that is a wrapper of the unified datatable and is only for rendering as a table ES|QL results. The UnifiedDatatable package is good but the consumers need to know all the properties to understand how to use it and the necessity of displaying in a table the results of an ES|QL query comes a lot lately. This plugin has only 3 required properties (rows, columns, query) which make it very easy for the consumers to use it. It also integrates the Row Viewer flyout
It changes the implementation of the obs ai assistant to render a Discover like table instead of a Lens table. The Discover-like table is much better on rendering a table with thousands of columns and is going to be much more helpful for our users.
The same plugin can be used later for the inline ediitng flyout too in a dashboard if we want to also display the results of an ES|QL query.
Some screenshots of the new possibilities in the assistant:
Checklist
Delete any items that are not applicable to this PR.