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] Fix esaggs missing default time field scenario in Lens #85754

Merged
merged 5 commits into from
Dec 21, 2020

Conversation

dej611
Copy link
Contributor

@dej611 dej611 commented Dec 14, 2020

Summary

Fixes #84058

This PR addresses only partially the problem of missing default time field, focusing only on Lens.
The fix prevents the esaggs to break when querying with a missing default time field.
The fix should not break any other plugin like Visualize or Discover, which are still reporting the missing field error.

Lens

When not using directly default time field, the editor is behaving as the indexpattern has no default time field.

Screenshot 2020-12-14 at 12 12 24

When using directly the default time field, the editor is now correctly showing the invalid reference message.

Screenshot 2020-12-14 at 12 14 01

Visualize

When using directly the field, because of changes in #82223, the user is redirected to the Saved Object specific page when trying to open the visualization. (Note in console it still shows the Error: Could not locate that index-pattern-field (id: "default-time-field-name-here") message.

Discover

When opening the indexpattern the user is still facing an error when the toast message with Error: Could not locate that index-pattern-field (id: "default-time-field-name-here")

Checklist

@dej611 dej611 added Feature:Data Views Data Views code and UI - index patterns before 8.0 v8.0.0 Feature:Lens v7.11.0 labels Dec 14, 2020
@dej611 dej611 requested review from mattkime and flash1293 December 14, 2020 11:30
@dej611 dej611 marked this pull request as ready for review December 15, 2020 14:05
@dej611 dej611 requested a review from a team as a code owner December 15, 2020 14:05
@dej611
Copy link
Contributor Author

dej611 commented Dec 15, 2020

@elasticmachine merge upstream

@dej611
Copy link
Contributor Author

dej611 commented Dec 15, 2020

@elasticmachine merge upstream

@flash1293
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Tested and works as expected, LGTM

@dej611 dej611 added the v7.12.0 label Dec 17, 2020
@dej611
Copy link
Contributor Author

dej611 commented Dec 21, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
data 1003.1KB 1003.4KB +310.0B

History

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

@dej611 dej611 merged commit 8ecd726 into elastic:master Dec 21, 2020
@dej611 dej611 deleted the fix/84058 branch December 21, 2020 16:32
dej611 added a commit to dej611/kibana that referenced this pull request Dec 21, 2020
…c#85754)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
dej611 added a commit that referenced this pull request Dec 22, 2020
…85754) (#86672)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
dej611 added a commit that referenced this pull request Dec 22, 2020
…85754) (#86673)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Default timefield as a missing field is causing an esaggs error
4 participants