Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-9042

[search] Dashboard fails to search and load back after changing aggregate function of a widget

    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

      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

        Attachments

          Activity

            People

            • Assignee:
              johan.ahlen Johan Åhlén
              Reporter:
              johan.ahlen Johan Åhlén
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: