console icon indicating copy to clipboard operation
console copied to clipboard

Feature request: remember column sorting

Open ErykCh opened this issue 2 years ago • 2 comments

The default sort is set on the Offset column. Which is not always good, as messages are not evenly distributed across partitions. And in order to have a list from newest to oldest, you need to sort by Timestamp. But the setting of this sort is not remembered and you have to repeat it when entering the topic again.

My proposition is to remember column sorting or set timestamp as default sort column or even both solutions.

ErykCh avatar Aug 10 '22 07:08 ErykCh

image

ErykCh avatar Aug 10 '22 07:08 ErykCh

@rikimaru0345 As far as I remember we tried to store this setting per individual topic in the browser session right?

weeco avatar Aug 15 '22 13:08 weeco

rank higher :-)

ErykCh avatar Apr 04 '23 22:04 ErykCh

Hi, maybe this is not a big problem to add this feature and it would be very helpfull. I think i'm not the only one when looking at the table I would like to see the items sorted by default in the order they appear on the Kafka.

ErykCh avatar Aug 24 '23 07:08 ErykCh

@ErykCh Since we consume messages cross partitions, there's no such order as "they appear on Kafka". The timestamp can also be set by the user to an arbitrary value. The only "right" order would be to sort by index within each partition. In fact if we consume cross partitions we have a strategy to get a few message from each partition and not try to consume the latest messages by timestamp across all partitions (users have different preferences when it comes to this).

We can save the order settings (in case we don't already do so) by topic. Would that help you?

weeco avatar Aug 24 '23 10:08 weeco

We can save the order settings (in case we don't already do so) by topic.

I checked again on version 2.3.1 and it doesn't remember the sort settings.

Would that help you?

Yes, I would be grateful.

ErykCh avatar Aug 24 '23 10:08 ErykCh

And maybe set Timestamp as default sorting column.

ErykCh avatar Aug 24 '23 16:08 ErykCh

This PR should fix this issue once it's merged https://github.com/redpanda-data/console/pull/1029

jvorcak avatar Jan 24 '24 16:01 jvorcak

Going out with 2.4.1 today

twmb avatar Feb 02 '24 14:02 twmb