kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

FE: Configurable message amount per page

Open JonathanMbt opened this issue 1 year ago • 5 comments

Issue submitter TODO list

  • [X] I've searched for an already existing issues here
  • [X] I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?

No response

Describe the feature you're interested in

The default number of messages displayed by topic is 100, I would like to be able to change that default value, and not having to do it by editing the url each time. I saw that it is defined as a constant (https://github.com/kafbat/kafka-ui/blob/4de0d5330d0c615e70fd9693bba265e6536029e9/frontend/src/lib/constants.ts#L55), would it not be possible to have a env variable that would allow to configure the default value ?

Describe alternatives you've considered

As a mitigation for the moment, I used the following environment variable to configure the API:

  • KAFKA_POLLING_DEFAULTPAGESIZE
  • KAFKA_POLLING_MAXPAGESIZE But it's not really user friendly, as the UI still have the limit to 100 in the URL... and it's make it not dynamic. I mean that the page size is static and cannot be change after settings that values... a default configurable value in frontend would permit to have something dynamic.

Version you're running

v1.0.0

Additional context

No response

JonathanMbt avatar Jul 08 '24 10:07 JonathanMbt

Hi JonathanMbt! 👋

Welcome, and thank you for opening your first issue in the repo!

Please wait for triaging by our maintainers.

As development is carried out in our spare time, you can support us by sponsoring our activities or even funding the development of specific issues. Sponsorship link

If you plan to raise a PR for this issue, please take a look at our contributing guide.

github-actions[bot] avatar Jul 08 '24 10:07 github-actions[bot]

Hi @Haarolean,

can you assign me on this issue too?

alexanderlz avatar Jan 16 '25 11:01 alexanderlz

@alexanderlz hey, I see the linked PR is about a different feature (messages export) while this one concerns page size. Should we expect a PR for this issue?

Haarolean avatar Feb 25 '25 13:02 Haarolean

hi @Haarolean , yes, it's a different PR, it's already working internally on our kafkaui, will submit it promptly

alexanderlz avatar Feb 25 '25 13:02 alexanderlz

@alexanderlz kind reminder

Haarolean avatar Mar 05 '25 17:03 Haarolean