Skip to content

Filters agg combined with query string or filters errors if no results #2428

@jimmyjones2

Description

@jimmyjones2

Using some syslog data.

Create new bar chart visualisation, add split chart agg, filters agg, query 1: syslog_program:dbus. Apply, see a bar. Now enter syslog_message:bound into query box, see zero bar, as expected, no messages match both.

Now add a sub aggregation, X-Axis, date histogram, and get an error in the javascript console:

TypeError: Cannot read property 'values' of undefined
    at http://localhost:5601/index.js?_b=4673:37266:22
    at Function.map (http://localhost:5601/index.js?_b=4673:34736:27)
    at lodash.ctor.(anonymous function) [as pluck] (http://localhost:5601/index.js?_b=4673:37152:31)
    at http://localhost:5601/index.js?_b=4673:105582:8
    at http://localhost:5601/index.js?_b=4673:105607:27
    at http://localhost:5601/index.js?_b=4673:105663:21
    at http://localhost:5601/index.js?_b=4673:105776:18
    at Object.<anonymous> (http://localhost:5601/index.js?_b=4673:108615:27)
    at Events.VisFactory.Vis.render (http://localhost:5601/index.js?_b=4673:110763:45)
    at Renderbot.VislibRenderbotFactory.VislibRenderbot.render (http://localhost:5601/index.js?_b=4673:140898:22)

Okay this is a bit of a weird example, but if I have a visualisation with a filters agg in a dashboard, and change the query string or do filtering that would cause there to be no results, it breaks in the same way.

Metadata

Metadata

Assignees

Labels

Feature:VislibVislib chart implementationPR sentbugFixes for quality problems that affect the customer experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions