-
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
lens esql generation #196049
base: main
Are you sure you want to change the base?
lens esql generation #196049
Conversation
ab81587
to
02b4ce9
Compare
a152a67
to
a097d5d
Compare
src/plugins/data/common/datatable_utilities/datatable_utilities_service.ts
Outdated
Show resolved
Hide resolved
5243363
to
3dcccc5
Compare
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.
I have started testing this. I find the transitions on date histogram a bit weird. How do the rest feel about it?
.../platform/plugins/shared/lens/public/datasources/form_based/operations/definitions/count.tsx
Outdated
Show resolved
Hide resolved
.../plugins/shared/lens/public/datasources/form_based/operations/definitions/date_histogram.tsx
Show resolved
Hide resolved
a886883
to
fadb2f8
Compare
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.
This is very close, found 2 more bugs concerning the date histogram
.../plugins/shared/lens/public/datasources/form_based/operations/definitions/date_histogram.tsx
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.
Another one related to filtering
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.
fixed in c9f594c
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.
fixed now, the click is not enabled if the metric is showing count of records
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.
Everything fine for me, thanks Peter for this.
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.
I've left some code reviews.
Not major issues, but it would be nice to have them addressed. If not, please create a follow up issue to track them.
src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.ts
Outdated
Show resolved
Hide resolved
src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.ts
Outdated
Show resolved
Hide resolved
src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.ts
Outdated
Show resolved
Hide resolved
src/platform/plugins/shared/data/public/actions/filters/create_filters_from_value_click.ts
Show resolved
Hide resolved
return; | ||
} | ||
const column = table.columns[columnIndex]; | ||
const { indexPattern, sourceField, operationType, interval } = table.columns[columnIndex].meta |
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 would be nice to have a type guard here
x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.ts
Show resolved
Hide resolved
x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.ts
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Marco Liberati <[email protected]>
bb61e3a
to
aa58127
Compare
ok console error gone and x-axis working as expected. This is the only thing not working correctly #196049 (comment) |
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
|
Summary
updates lens so it uses ESQL when requesting data from elasticsearch rather than DSL when that is possible.
nothing should change for the user, everything should work exactly as before
but when going to inspector you will be able to see that in some cases we will send out ESQL request.
the feature is only enabled when the
lens.enable_esql
feature flag is enabled.at the moment this covers very few cases, but rather builds the necessary infrastructure so we can keep improving this over time:
how to test:
kibana.dev.yaml
:products.price
todo: