Skip to content
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] Duplicated datatable available as inspector data for Heatmap chart #123815

Closed
wants to merge 1 commit into from

Conversation

VladLasitsa
Copy link
Contributor

@VladLasitsa VladLasitsa commented Jan 26, 2022

Closes: #123176

Summary

We shouldn't execute logDatatable in heatmap_function if we open heatmap in lens because here we alredy had the function which execute logDatatable.

@@ -143,7 +143,8 @@ export const heatmapFunction = (): HeatmapExpressionFunctionDefinition => ({
},
},
fn(data, args, handlers) {
if (handlers?.inspectorAdapters?.tables) {
// as in lens we've already calling logDatatable for heatmap we shouldn't do it here
if (handlers?.inspectorAdapters?.tables && handlers?.getExecutionContext?.()?.type !== 'lens') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honestly not sure that expression functions should know anything about their consumers.

@alexwizp alexwizp closed this Jan 26, 2022
@kibana-ci
Copy link
Collaborator

kibana-ci commented Jan 26, 2022

💔 Build Failed

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.0MB 1.0MB +60.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
expressionHeatmap 12.2KB 12.4KB +118.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Duplicated datatable available as inspector data for Heatmap chart
3 participants