-
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] Creating where clause filters from the table, sidebar and table row viewer #181399
[ES|QL] [Discover] Creating where clause filters from the table, sidebar and table row viewer #181399
Conversation
/ci |
Pinging @elastic/kibana-esql (Team:ESQL) |
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.
Very nice feature!
packages/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/main/components/layout/discover_layout.tsx
Show resolved
Hide resolved
src/plugins/discover/public/application/main/components/layout/discover_layout.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/main/components/sidebar/lib/get_field_list.ts
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.
Overall working nicely, but I think there are some corner cases to look at
/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.
ES|QL stuff looks good to me. I created a couple issues to improve our query manipulation DX
Lol... I guess I technically approved the whole thing since I'm a member of both Discover and ES|QL teams.... I only meant my review to be on behalf of the ES|QL team. I leave the Discover stuff to @jughosta |
Thanx Drew, I want to revert and i will def not merge without Julia's approval :D |
/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.
The functionality looks great!
One thing before the approval: can we update the following tests? Currently they generate incorrect schemas and might be less effective in testing:
packages/kbn-unified-data-table/src/components/data_table_columns.test.tsx
packages/kbn-unified-data-table/src/components/__snapshots__/data_table_columns.test.tsx.snap
Outdated
Show resolved
Hide resolved
packages/kbn-unified-data-table/src/components/default_cell_actions.tsx
Outdated
Show resolved
Hide resolved
Ok so @jughosta on your comments:
|
/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.
Awesome work! And thanks for addressing the comments! 🚢
/ci |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
Summary
Part of #181280
This PR handles the creation of filters (where clause) in Discover ES|QL mode. The parts that are being handled are:
The creation of filters from the charts is not here.
Checklist
Delete any items that are not applicable to this PR.