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

[Data table vis] Choosing the Date Histogram aggregation causes the app to error out if index does not have a time field #68977

Closed
rayafratkina opened this issue Jun 12, 2020 · 1 comment · Fixed by #69934
Assignees
Labels
Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@rayafratkina
Copy link
Contributor

rayafratkina commented Jun 12, 2020

Kibana version:
7.7 and 7.8

Describe the bug:
When I try to create a data table from an index without a time field, choosing the Date Histogram aggregation causes the app to error out and the screen becomes blank.

Steps to reproduce:

  1. Create and index pattern without a time field
  2. Create new data table vis
  3. Choose split rows and select Date histogram aggregation

See error

Expected behavior:
Ideally user should not be able to pick date histogram aggregation. At the very least we should be showing a user friendly error message

Screenshots (if relevant):
Elastic - Google Chrome 6_11_2020 8_29_21 PM

Errors in browser console (if relevant):
TypeError: "field" is a required parameter
at FieldParamType._this.write (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:257553)
at https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:32753
at Array.forEach ()
at writeParams (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:32706)
at BucketAggType.makeLabel (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:310221)
at AggConfig.makeLabel (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:29651)
at getColumn (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:338960)
at https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:339080
at Array.map ()
at tabifyGetColumns (https://763f010f35f1460f800915485da4ea92.europe-west1.gcp.cloud.es.io:9243/31960/bundles/plugin/data/data.plugin.js:6:339052)

@rayafratkina rayafratkina added Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jun 12, 2020
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Table Data table visualization feature Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants