Skip to content

Console errors on selecting date histogram when index pattern is created without time filter #58862

@maryia-lapata

Description

@maryia-lapata

Kibana version: master

Describe the bug: If a date histogram aggregation is configured in the vis based on an index pattern without a time filter, errors are logged into the console and the page is empty.

Steps to reproduce:

  1. Create an index pattern without a time filter
  2. Create new visualization
  3. Select date_histogram aggregation as X-Axis buckets
  4. Errors get logged:
errors.ts:20 Uncaught Error: Could not locate that index-pattern-field
    at FieldParamType._this.deserialize (field.ts:121)
    at agg_config.ts:209
    at Array.forEach (<anonymous>)
    at AggConfig.setParams (agg_config.ts:185)
    at AggConfig.set (agg_config.ts:486)
    at reducers.ts:62
    at Array.map (<anonymous>)
    at editorStateReducer (reducers.ts:60)
    at updateReducer (react-dom.development.js:16591)
    at Object.useReducer (react-dom.development.js:17346)

Expected behavior: there shouldn't be possible to select date histogram

Screenshots (if relevant):
image

Metadata

Metadata

Assignees

Labels

Feature:Vis EditorVisualization editor issuesTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//blockerbugFixes for quality problems that affect the customer experienceregressionv7.7.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions