Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.5.0
-
Fix Version/s: None
-
Component/s: app.dashboard
-
Labels:None
-
Target Version:
Description
1. Create a new dashboard
2. Add timeline or chart widget
3. In the new widget, change "Group by" aggregate in the upper left to anything else "Average" etc.
4. See error in hue log or "search" call in network tab of chrome dev tools
From the UI the only change in the call to the search endpoint is the function name, for instance:
< "aggregate":{"function":"count", ...
—
> "aggregate":{"function":"unique", ...
Also, if you save the dashboard it won't load any of the widgets back correctly even if just one has a different aggregate than "Group by".
The issue is directly caused by empty list with 0 index ref here: https://github.com/cloudera/hue/blob/master/desktop/libs/libsolr/src/libsolr/api.py#L183