netdata-cloud icon indicating copy to clipboard operation
netdata-cloud copied to clipboard

[feat]: Dashboard - Chart sort order is not persisted

Open snwflake opened this issue 2 years ago • 2 comments

Feature description

Follow-up to #495

Charts lose their sort properties when switching tabs/reloading.

Expected behavior

Dashboard charts should persist their sort order.

Steps to reproduce

  1. create dashboard
  2. add "cpu.cpu0" chart
  3. set "sort dimensions" to anything but Default
  4. (dashboard doesn't detect a change, so you can't Save)
  5. reload page

Screenshots

https://user-images.githubusercontent.com/10883751/185796707-f51fdb85-a87e-416b-aa4b-710a5995076f.mp4

Error Logs

No response

Desktop

OS: Fedora 36 kernel 5.17 Browser: Brave 1.42

Additional context

No response

snwflake avatar Aug 21 '22 14:08 snwflake

@snwflake thanks for raising this, this in fact is working as spec'ed. the sorting was introduced to help for a temporary investigation/troubleshooting across Overview, Single Node view and Dashboards.

your case seems to be specific on the Dashboards, right? we hope to soon revisit the features and functionality of Dashboards and, most probably, we will allow a higher level of customization compared to Overview/Single Node view.

could you share a bit into your use-case and/or requirements?

note: moving this to a feature request

hugovalente-pm avatar Aug 22 '22 07:08 hugovalente-pm

hey @hugovalente-pm! yes, the behavior is (at least in my case) specific to dashboards. Seeing that it is supposed to be a customized view into whatever metrics you deem valuable, I think there has to be done more to achieve that goal.

I'm aware of the requests to add additional chart types and do support that view, because right now, it's just a glorified overview really.

My specific use case for raising this issue was apps.preads. The default sort order seems completely arbitrary to me and especially in a multinode dashboard, with a high potential amount of apps, sorting it every time by max .. min over a selected period contradicts my personal idea of a dashboard.

snwflake avatar Aug 22 '22 14:08 snwflake