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] Fields shown as empty in some cases #84325

Closed
flash1293 opened this issue Nov 25, 2020 · 3 comments · Fixed by #84432
Closed

[Lens] Fields shown as empty in some cases #84325

flash1293 opened this issue Nov 25, 2020 · 3 comments · Fixed by #84432
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

Kibana version: master

Describe the bug: In some cases fields are shown as empty even though they contain data

Steps to reproduce:

  1. Ingest these documents:
POST testindex/_doc
{
  "ts1": "2020-10-25",
  "ts2": "2020-10-25",
  "val": 5,
  "val2": [5,4]
}

POST testindex/_doc
{
  "ts1": "2020-10-24",
  "ts2": "2020-10-24",
  "val": 2,
  "val2": 9
}
  1. Create an index pattern with time field on "ts1"
  2. Go to Lens and adjust time range to include the time range
  3. All fields shown as empty

Expected behavior:
Fields should be shown as existing

Screenshots (if relevant):
Screenshot 2020-11-25 at 13 36 20

Any additional context:
I previously thought this would be caused by scripted fields (see #84194 ), but I can't reproduce this behavior anymore. Maybe there's just a race condition of some kind going on in general.

@flash1293 flash1293 added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Nov 25, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@mattkime
Copy link
Contributor

This is likely the same bug as #84194 - introduced by #82223

relevant code - x-pack/plugins/lens/server/routes/existing_fields.ts:139

To resolve - use index pattern api to load field list instead of reading raw field list. This is also important for index pattern defined runtime field support.

@nreese
Copy link
Contributor

nreese commented Dec 1, 2020

Until #84659 is merged, to view the problem when using sample data, under index pattern management - add a custom label to a field. This will cause the index-pattern saved object to be updated and remove fields cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants