Skip to content

[Lens] don't block render on missing sort field#150356

Merged
drewdaemon merged 1 commit intoelastic:mainfrom
drewdaemon:dont-block-render-on-missing-sort-field
Feb 6, 2023
Merged

[Lens] don't block render on missing sort field#150356
drewdaemon merged 1 commit intoelastic:mainfrom
drewdaemon:dont-block-render-on-missing-sort-field

Conversation

@drewdaemon
Copy link
Copy Markdown
Contributor

@drewdaemon drewdaemon commented Feb 6, 2023

Summary

part of #143673

In the case where only the sort field is missing, you'll get an Elasticsearch error displayed in place of the visualization. So we thought we should have the missing field error shown in the workspace instead since that's the real problem.

However, doing this can cause the integration dashboards to suffer from the same issue that #149262 was trying to resolve since many of them have last-value operations with sort fields.

Screenshot 2023-02-06 at 11 28 09 AM

The lesser of the evils is just to not block the render no matter what. In the scenario where only the sort field is missing from a configuration, they will see the elasticsearch error in the workspace, but will still see the missing field error in the messages list and the error dimension. This scenario also seems like an edge case, while the integration dashboards are installed every day.

@drewdaemon drewdaemon added Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// Feature:Lens labels Feb 6, 2023
@drewdaemon drewdaemon marked this pull request as ready for review February 6, 2023 17:32
@drewdaemon drewdaemon requested a review from a team as a code owner February 6, 2023 17:32
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@drewdaemon drewdaemon added the release_note:skip Skip the PR/issue when compiling release notes label Feb 6, 2023
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

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.3MB 1.3MB -21.0B

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

Copy link
Copy Markdown
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

Code changes LGTM

@drewdaemon drewdaemon merged commit 551f0f9 into elastic:main Feb 6, 2023
@kibanamachine kibanamachine added v8.7.0 backport:skip This PR does not require backporting labels Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants