kafbat/kafka-ui

FE: Configurable message amount per page

Open

#468 opened on Jul 8, 2024

 (5 comments) (0 reactions) (0 assignees)TypeScript (363 forks)auto 404
area/messagesgood first issuehacktoberfestscope/frontendstatus/triage/completedtype/enhancement

Repository metrics

Stars
 (2,554 stars)
PR merge metrics
 (PR metrics pending)

Description

Issue submitter TODO list

  • I've searched for an already existing issues here
  • 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

Contributor guide