Skip to content

Filtering during switches between Kafka clusters #1372

@Gleb-Shipilov

Description

@Gleb-Shipilov

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

Prerequisites

Currently, when you have a filter in one Kafka cluster (e.g. you are searching for topics containing particular word) and you switch to another Kafka cluster, the value remains in the field, but nothing happens (except for ACLs, for ACLs Kafbat UI applies filters when you switch between Kafka clusters)

I as a Kafbat UI want to have possibility to:

  • Automatically apply the same filters while switching between Kafka clusters
  • Clear filter value while switching between Kafka clusters
  • Have a feature toggle to switch between these two functionalities

So that I can search for topics, consumers, connectors, schemas, ACLs faster.

To do

Create 2 options to manage Kafbat UI filters.
Create a feature toggle to switch between 2 options.

Acceptance criteria

1. Filter Persistence and Application

Given a user is on a page with a filter field (e.g., Topics, Consumers, Connectors) and has entered a value.

When the user switches to a different Kafka cluster using the cluster dropdown menu.

Then the filter value should persist in the filter field. The application should automatically re-apply the filter against the data in the new cluster.

2. Filter Clearing

Given a user is on a page with a filter field and has entered a value.

When the user has the "Clear Filter" toggle enabled and switches to a different Kafka cluster.

Then the filter field should be cleared and no filter should be applied to the data in the new cluster.

3. Feature Toggle

Given a user is viewing a page that has a filter field.

When the user is logged in to the Kafbat UI.

Then there should be a visible and easily accessible feature toggle (e.g., a checkbox or a button) on the UI that allows the user to switch between the two behaviors:

  1. "Auto-apply filters" (default behavior, as per AC 1)
  2. "Clear filters on cluster switch" (as per AC 2)

4. User Experience

Given the user has switched between the two filter behaviors using the feature toggle.

When the user navigates the UI.

Then the user's selected preference (auto-apply or clear) should be remembered across different sessions and pages, providing a consistent experience. This setting should be specific to the user's profile.

Describe alternatives you've considered

No response

Version you're running

6474fb6

Additional context

No response

Metadata

Metadata

Assignees

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions