Skip to content

Export tables to CSV #1370

@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

I as a Kafbat UI user want to be able to export tables of topics, consumers, topics inside consumers, Kafka Connect clusters, Kafka Connect connectors, brokers to CSV according to my filters, so that I can later manually operate with these tables.

To Do

Add export to CSV for all the objects from prerequisites.

Acceptance criteria

General Export Functionality
When the user is viewing any of the following tables:

  • Topics
  • Consumers
  • Topics inside a consumer
  • Kafka Connect clusters
  • Kafka Connect connectors
  • Brokers

Given the table is displayed with its data.

Then a visible and accessible "Export to CSV" button is present on the UI, and clicking it downloads a CSV file containing the data currently shown in the table.

Filtering
When the user has applied filters to a table (e.g., filtering topics by name or consumers by ID).

Given the table view is showing a subset of data based on the applied filters.

Then clicking the "Export to CSV" button downloads a CSV file that only contains the data from the filtered view, not the entire dataset.

File Format and Naming
When the user successfully exports a table to CSV.

Given the export process is complete.

Then the downloaded file is named descriptively (e.g., topics_export_YYYY-MM-DD.csv), and the CSV content has a header row with column names that match the table's UI, followed by data rows corresponding to the filtered table content.

Describe alternatives you've considered

No response

Version you're running

6474fb6

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions