caluma icon indicating copy to clipboard operation
caluma copied to clipboard

Analytics: Make fields sortable

Open winged opened this issue 2 years ago • 1 comments

Analytics fields should be sortable. Analog to form questions, a ReorderAnalyticsFields mutation should be implemented. On DB level, the fields should receive a sort attribute that's updated according to the requested ordering. Additionally, new fields should get added to the end by calculating the "next" sorting value.

On the output side, the columns of the analytics (generated in caluma_analytics/schema.py, in AnalyticsOutput, should be sorted accordingly as well.

winged avatar Sep 29 '22 14:09 winged

/cc @Yelinz

open-dynaMIX avatar Sep 29 '22 14:09 open-dynaMIX