Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.06k forks source link

Cannot sort data table widget with more than 1 field #15391

Open drewmiranda-gl opened 1 year ago

drewmiranda-gl commented 1 year ago

It appears that it is only possible to sort a data table widget using a single field, even though the UX suggests that it can and will sort by more than 1 field.

image

Expected Behavior

If data table shows the ability to sort multiple fields, sorting is applied as expected. For example, if i sort by timestamp, and then sum(network_bytes), this sorting should be applied.

image

Current Behavior

Data table widget only allow sorting by 1 single field.

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a data table widget
  2. Attempt to sort by more than 1 field

Alternatively:

  1. edit data table widget
  2. add more than 1 sort field
  3. observe that field select/dropdown does not allow you to select a field for second sort field input

Context

Via https://community.graylog.org/t/sort-additional-metrics-when-sort-timestamp-is-enabled-not-working/28627

Your Environment

drewmiranda-gl commented 1 year ago

Dennis said this is expected behavior unfortunately and that you can only multi sort when sorting metrics. It is not possible to multi-sort fields themselves.