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

Add option to store saved filters on the filesystem in detriment of in memory cache

Open lmirandabrochado opened this issue 10 months ago • 2 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?

Yes.

I'm constantly using kafbat containers for local testing and, with the most recent upgrades, I noticed that kafbat started storing the saved filters in memory cache, along with the already existing localstorage.

I also noticed that, in addition to the smart filters being stored in memory, there's also the need to post the filterCode value to the /api/clusters/<cluster-name>/topics/<topic-name>/smartfilters endpoint, to have it linked to the browser's local storage.

The flow of operations I need to do on a daily basis to setup filters over and over again increased a lot, and doing simple test cases is getting too cumbersome, as I updated almost all my instances from provectus/kafka-ui to kafbat/kafka-ui, without taking this change to the filters into consideration.

Describe the feature you're interested in

I'm suggesting adding an alternative form of storing this filters.

Describe alternatives you've considered

I've considered adding a filesystem store option (exclusive for containers) so that these filters can alternatively be stored in the filesystem itself instead of in-memory cache.

Version you're running

2956664

Additional context

No response

lmirandabrochado avatar Jan 13 '25 18:01 lmirandabrochado

Hi lmirandabrochado! 👋

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 Jan 13 '25 18:01 github-actions[bot]

I think that we should consider storing them in Kafka and/or something else. A common use case is cloud deployments where the application state is wiped with every deployment

yeikel avatar Jan 16 '25 16:01 yeikel