Skip to content

Ensure metadata consistency and UI refresh when renaming dataset columns#480

Open
Irozuku wants to merge 2 commits intodevelopfrom
fix/column-name-stats
Open

Ensure metadata consistency and UI refresh when renaming dataset columns#480
Irozuku wants to merge 2 commits intodevelopfrom
fix/column-name-stats

Conversation

@Irozuku
Copy link
Collaborator

@Irozuku Irozuku commented Mar 13, 2026

Summary

Improves the dataset column renaming workflow by ensuring all related metadata and statistics are correctly updated on the backend, and by refreshing the frontend dataset information automatically after a column rename. This guarantees metadata consistency and keeps the UI synchronized with the updated dataset state.


Type of Change

Check all that apply like this [x]:

  • Backend change
  • Frontend change
  • CI / Workflow change
  • Build / Packaging change
  • Bug fix
  • Documentation

Changes (by file)

Briefly list the important modified files and what was done.

  • backend/.../dataset_api.py: Updated rename_dataset_column to rename columns across all related metadata fields including column_names, nan, general_info.dtypes, quality_info.nan_ratio_per_column, and statistics for numeric, categorical, and text columns. Correlation keys and values are also updated to reflect the new column name.
  • DatasetVisualization.tsx: Reset active tab and trigger dataset info fetch whenever the dataset changes to ensure the UI reflects the latest state.
  • OverviewTab.tsx: Added support for the onEditColumn callback to propagate column rename events.
  • DatasetTable.tsx: Added onEditColumn callback so the parent component can refresh dataset information after a column rename.

Testing (optional)

Rename a column in the dataset table and verify that:

  • The column name is updated across all metadata fields and statistics.
  • Correlation matrices reflect the new column name.
  • The frontend dataset information refreshes automatically without requiring a manual reload.

Irozuku added 2 commits March 13, 2026 16:40
Ensures dataset metadata updates immediately when a column is renamed,
@Irozuku Irozuku added bug Something isn't working front Frontend work back Backend work labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

back Backend work bug Something isn't working front Frontend work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant