Skip to content

Redirect to consumer group page after offset reset #1099

Open
@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
When a user resets consumer group offsets, the user is being redirected to the list of all consumer groups.

I, as a Kafka UI user, want to be redirected back to the consumer group page after resetting offsets for a topic, so I can reset offsets for other topics.

To do
After resetting consumer group offsets for a topic redirect back to the page of the consumer group

Acceptance criteria
Scenario 1: Successful redirection to the specific consumer group page after resetting offsets for a topic.

Given

A Kafka UI user is viewing the details of a specific consumer group.
The user initiates the action to reset offsets for one topic within that consumer group.
The offset reset operation for that topic completes successfully.

When

The offset reset operation for the specified topic finishes.

Then

The user MUST be redirected back to the page of the specific consumer group they were previously viewing (i.e., not to the list of all consumer groups).
The consumer group page MUST display the updated offset information for the topic(s) affected by the reset.
The user SHOULD see a confirmation message indicating the successful offset reset (e.g., "Offsets reset for topic [Topic Name]").

Scenario 2: Error handling during offset reset does not disrupt redirection behavior.

Given

A Kafka UI user is viewing the details of a specific consumer group.
The user initiates the action to reset offsets for one topic within that consumer group.
The offset reset operation for that topic encounters an error (e.g., Kafka connection issue, invalid parameters).

When

The offset reset operation for the specified topic fails.

Then

The user MUST be redirected back to the page of the specific consumer group they were previously viewing.
The user MUST see an error message clearly explaining that the offset reset failed for the topic (e.g., "Failed to reset offsets for topic [Topic Name]: [Error Details]").
The consumer group page MUST display the current, un-reset offset information for the topic.

Describe alternatives you've considered

No response

Version you're running

1.2.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions